Closed mgfjx closed 7 years ago
Please give output from xcodebuild clean build
.
@Tatsh that's it . Code signing is required for product type 'Application' in SDK 'iOS 10.0'
I signing it with xcode , It works now . @Tatsh
@mgfjxxiexiaolong Have you patched your version of Xcode to bypass code signing restrictions? If you don't want to sign Clutch with a cert through Xcode you'll need to edit these two keys CODE_SIGNING_REQUIRED
to NO
and AD_HOC_CODE_SIGNING_ALLOWED
to YES
in this file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/SDKSettings.plist
@NinjaLikesCheez need to provide those instructions in the README I guess. Forgot how to do it using plutil or PlistBuddy
I'm having this same problem even though I've run the following commands
killall Xcode
/usr/libexec/PlistBuddy -c "Set :DefaultProperties:CODE_SIGNING_REQUIRED NO" /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/SDKSettings.plist\n
/usr/libexec/PlistBuddy -c "Set :DefaultProperties:AD_HOC_CODE_SIGNING_ALLOWED YES" /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/SDKSettings.plist\n
/usr/libexec/PlistBuddy -c "Set :DefaultProperties:CODE_SIGNING_REQUIRED NO" /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.2.sdk/SDKSettings.plist\n
/usr/libexec/PlistBuddy -c "Set :DefaultProperties:AD_HOC_CODE_SIGNING_ALLOWED YES" /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.2.sdk/SDKSettings.plist\n
xcodebuild clean build
and then I still get
=== BUILD TARGET Clutch OF PROJECT Clutch WITH THE DEFAULT CONFIGURATION (Release) ===
Check dependencies
"Clutch" isn't code signed but requires entitlements. It is not possible to add entitlements to a binary without signing it.
Code signing is required for product type 'Application' in SDK 'iOS 10.2'
** BUILD FAILED **
The following build commands failed:
Check dependencies
(1 failure)
Any help would be appreciated
I am not getting this error using the instructions and I have the same SDK. Please post a full build log. Also verify manually that /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/SDKSettings.plist
has the correct settings being patched with PlistBuddy.
$ plutil -p /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/SDKSettings.plist | fgrep SIGNING
"CODE_SIGNING_REQUIRED" => "NO"
"AD_HOC_CODE_SIGNING_ALLOWED" => "YES"
for some reason PlistBuddy wasn't working unless I ran it as sudo.. now it works
thanks!
Is there a way to suppress Xcode warning:
"Code Signing Warning: "Clutch" isn't code signed but requires entitlements. Falling back to ad hoc signing."
?
@MelnykTaras Latest commit removes this warning. Clean and rebuild and it should no longer happen.
'xcodebuild clean build' , this command require code signing in xcode8+, how should i do? singning?