KJCracks / Clutch

Fast iOS executable dumper
3.69k stars 647 forks source link

Code signing is required for product type 'Application' in SDK 'iOS 10.0' #160

Closed mgfjx closed 7 years ago

mgfjx commented 7 years ago

'xcodebuild clean build' , this command require code signing in xcode8+, how should i do? singning?

Tatsh commented 7 years ago

Please give output from xcodebuild clean build.

mgfjx commented 7 years ago

@Tatsh that's it . Code signing is required for product type 'Application' in SDK 'iOS 10.0'

mgfjx commented 7 years ago

I signing it with xcode , It works now . @Tatsh

NinjaLikesCheez commented 7 years ago

@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

Tatsh commented 7 years ago

@NinjaLikesCheez need to provide those instructions in the README I guess. Forgot how to do it using plutil or PlistBuddy

vesper8 commented 7 years ago

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

Tatsh commented 7 years ago

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.

Tatsh commented 7 years ago
 $ 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"
vesper8 commented 7 years ago

for some reason PlistBuddy wasn't working unless I ran it as sudo.. now it works

thanks!

MelnykTaras commented 6 years ago

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."?

Tatsh commented 6 years ago

@MelnykTaras Latest commit removes this warning. Clean and rebuild and it should no longer happen.