XCode编译错误,如下:
CodeSign /Users/admin/Library/Developer/Xcode/DerivedData/*****-boisxxdutqljesbobjrzobopdorf/Build/Products/Debug-iphonesimulator/imobii-waiqin.app
cd "/Users/admin/Desktop/clientapptag/ios"
export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
Signing Identity: "-"
/usr/bin/codesign --force --sign - --timestamp=none /Users/admin/Library/Developer/Xcode/DerivedData/*****-boisxxdutqljesbobjrzobopdorf/Build/Products/Debug-iphonesimulator/*****.app
/Users/admin/Library/Developer/Xcode/DerivedData/*****-boisxxdutqljesbobjrzobopdorf/Build/Products/Debug-iphonesimulator/*****.app: resource fork, Finder information, or similar detritus not allowed
Command /usr/bin/codesign failed with exit code 1
原因如下:
图片错误,格式错误,通过命令修改图片属性即可。
xattr -c Default.png
stackoverflow解决方案:
http://stackoverflow.com/questions/39652867/code-sign-error-in-macos-sierra-xcode-8-resource-fork-finder-information-or