我正在尝试构建一个使用SDWebImage的iOS项目,该项目是通过Cocoapods导入的。该项目适用于模拟器,但在选择实际的iOS设备时,我遇到了这个错误:
Run custom shell script '[CP] Embed Pods Frameworks':
Code Signing <path_to>/DerivedData/FooBar-uuid/Build/Products/Debug-iphoneos/FooBar.app/Frameworks/SDWebImage.framework with Identity iPhone Developer: Parrotmac (XXXXXXXXX)
/usr/bin/codesign --force --sign <HEX_IDENTIFIER_HERE> --preserve-metadata=identifier,entitlements "<path_to>/DerivedData/FooBar-uuid/Build/Products/Debug-iphoneos/FooBar.app/Frameworks/SDWebImage.framework"
<path_to>/DerivedData/FooBar-uuid/Build/Products/Debug-iphoneos/FooBar.app/Frameworks/SDWebImage.framework: unknown error -1=ffffffffffffffff
Command /bin/sh failed with exit code 1</code>
我试过了:
Pods/
,Podfile.lock
和
FooBar.xcworkspace
然后重新运行pod install
DerivedData
pod install
)。但我完全不知道该怎么办。 This SO Question似乎相似,但没有答案。
如果重要,我正在使用macOS 10.12.4(Beta)和Xcode 8