xcode 9.3错误命令/ bin / sh在归档

时间:2018-05-01 16:24:43

标签: ios xcode alamofire

清理项目并删除DerivedData文件后,我仍然有错误。

    mkdir -p /Users/geoff/Library/Developer/Xcode/DerivedData/Cable_Park-bxyqeiprdndohveuzrnvtsybtjqh/Build/Intermediates.noindex/ArchiveIntermediates/Cable Park/BuildProductsPath/Release-iphoneos/Cable Park.app/Frameworks
    Symlinked...
    rsync --delete -av --filter P .*.?????? --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "/Users/geoff/Library/Developer/Xcode/DerivedData/Cable_Park-bxyqeiprdndohveuzrnvtsybtjqh/Build/Intermediates.noindex/ArchiveIntermediates/Cable Park/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/Alamofire.framework" 
"/Users/geoff/Library/Developer/Xcode/DerivedData/Cable_Park-bxyqeiprdndohveuzrnvtsybtjqh/Build/Intermediates.noindex/ArchiveIntermediates/Cable Park/InstallationBuildProductsLocation/Applications//Cable Park.app/Frameworks"
    building file list ... done
    Alamofire.framework/
    Alamofire.framework/Alamofire
    Alamofire.framework/Info.plist

        sent 7644058 bytes  received 70 bytes  15288256.00 bytes/sec
        total size is 7642892  speedup is 1.00
        Code Signing /Users/geoff/Library/Developer/Xcode/DerivedData/Cable_Park-bxyqeiprdndohveuzrnvtsybtjqh/Build/Intermediates.noindex/ArchiveIntermediates/Cable Park/InstallationBuildProductsLocation/Applications//Cable Park.app/Frameworks/Alamofire.framework with Identity iPhone Developer: Geoffroy Hachez (YYNBZTVS5Q)
        /usr/bin/codesign --force --sign 3EF707F7B9FBEB2A900A4FE19B59A6EA180661DD  --preserve-metadata=identifier,entitlements '/Users/geoff/Library/Developer/Xcode/DerivedData/Cable_Park-bxyqeiprdndohveuzrnvtsybtjqh/Build/Intermediates.noindex/ArchiveIntermediates/Cable Park/InstallationBuildProductsLocation/Applications//Cable Park.app/Frameworks/Alamofire.framework'
        /Users/geoff/Library/Developer/Xcode/DerivedData/Cable_Park-bxyqeiprdndohveuzrnvtsybtjqh/Build/Intermediates.noindex/ArchiveIntermediates/Cable Park/InstallationBuildProductsLocation/Applications//Cable Park.app/Frameworks/Alamofire.framework: unknown error -1=ffffffffffffffff
        Command /bin/sh failed with exit code 1

我搜索小时解决方案,但我无法归档我的项目。

(编辑1) 在新的clean之后,删除了derivedData并重新启动。 这是新消息

mkdir -p /Users/geoff/Library/Developer/Xcode/DerivedData/Cable_Park-bxyqeiprdndohveuzrnvtsybtjqh/Build/Products/Debug-iphoneos/Cable Park.app/Frameworks
rsync --delete -av --filter P .*.?????? --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "/Users/geoff/Library/Developer/Xcode/DerivedData/Cable_Park-bxyqeiprdndohveuzrnvtsybtjqh/Build/Products/Debug-iphoneos/Alamofire/Alamofire.framework" "/Users/geoff/Library/Developer/Xcode/DerivedData/Cable_Park-bxyqeiprdndohveuzrnvtsybtjqh/Build/Products/Debug-iphoneos/Cable Park.app/Frameworks"
building file list ... done
Alamofire.framework/
Alamofire.framework/Alamofire
Alamofire.framework/Info.plist

sent 3254366 bytes  received 70 bytes  6508872.00 bytes/sec
total size is 3253736  speedup is 1.00
Code Signing /Users/geoff/Library/Developer/Xcode/DerivedData/Cable_Park-bxyqeiprdndohveuzrnvtsybtjqh/Build/Products/Debug-iphoneos/Cable Park.app/Frameworks/Alamofire.framework with Identity iPhone Developer: Geoffroy Hachez (YYNBZTVS5Q)
/usr/bin/codesign --force --sign 3EF707F7B9FBEB2A900A4FE19B59A6EA180661DD  --preserve-metadata=identifier,entitlements '/Users/geoff/Library/Developer/Xcode/DerivedData/Cable_Park-bxyqeiprdndohveuzrnvtsybtjqh/Build/Products/Debug-iphoneos/Cable Park.app/Frameworks/Alamofire.framework'
/Users/geoff/Library/Developer/Xcode/DerivedData/Cable_Park-bxyqeiprdndohveuzrnvtsybtjqh/Build/Products/Debug-iphoneos/Cable Park.app/Frameworks/Alamofire.framework: unknown error -1=ffffffffffffffff
Command /bin/sh failed with exit code 1

(编辑2)我创建了一个新项目,它是同一个应用程序。当我做模拟器它工作。当我在我的iPhone或存档上进行编译时,会出现同样的错误。 有人告诉我删除" //"但我不知道该怎么做。 请帮我解决这个问题,非常令人沮丧  感谢

3 个答案:

答案 0 :(得分:0)

以下路径中彼此相邻的两个“//”看起来很可疑

应用程序和Cable Park之间

/ Applications // Cable Park.app/Frameworks“     建立文件列表......完成

答案 1 :(得分:0)

我发现了我的问题。 这是证书问题

我这样做了 Xcode 9 - Alamofire Pods. Command /bin/sh failed with exit code 1

现在就可以了。

答案 2 :(得分:-1)

尝试以下步骤:

1-删除派生数据

2 - 清理您的项目

3-重新启动系统

4-构建项目