iOS App testing: No Code signature found

心不动则不痛 提交于 2019-11-28 22:54:29

You can also get this error if a build gets interrupted partway through. It corrupts Xcode's internal data (why are they saving corruptible data? I have no idea).

Shut down xcode, and restart, do a fresh build ... and it will usually go away.

knagode

Fully Clean Your Project

It helps if you fully clean up build folder. The usual Project > Clean menu item is not thorough. Use the hidden alternative.

Hold down Option key (⌥) while choosing Product > Clean Build Folder…

The Option key transforms that menu item from "Clean" to "Clean Build Folder" and changes its behavior as discussed in this other question, XCode 4 “Clean” vs. “Clean Build Folder”.

You have to code sign if you want to run your app on an iDevice, unless it's jailbroken.

You have to have a development licence to code sign your apps.

If you don't want to buy a developer licence and you are a student, you can apply iOS Developer University Program which allows you to test your apps on actual devices but not to submit App Store.

https://developer.apple.com/programs/ios/university/

It is fine if you don't want to code sign it in the settings, but you MUST code sign it if you want to run it in a Device. That is of course unless you jailbreak your device... which is your only choice since you mention you do not have an app dev account.

This error means that your code can not be signed ,so the project can't run in your device .I found this problem because I changed "other C flags" in Build Settings.Remove the item you added ,it runs!

I got this error in Xcode 8.2 because I didn't have enough space on my device. Thanks Xcode for the descriptive error...

I got this problem when a prov-file was deleted. I generate a provisioning file ,and it's fixed.

I was playing with the following file - with the CODE_SIGNING_REQUIRED property. By default it is YES. I've changed it to NO - to try to generate an unsigned .ipa.

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.1.sdk

The settings were set to "Don't code sign". After that I needed to run the app on the device, but got this "No Code Signature found" error. After I've set all the teams, profiles, code signing identities correctly - the issue still appeared. Set back the CODE_SIGNING_REQUIRED to YES.

But somehow nothing helped - "No Code Signature found" error stayed there - had to reinstall the Xcode.

Cleaning caches and Xcode DerivedData folder helped me to solve this issue. After cleaning product and product build folder exit Xcode and remove everything in

~/Library/Developer/Xcode/DerivedData

Then remove all files and folders related to Xcode in

~/Library/Caches

I Used this:

Right click on XCode.app file in your Application folder and Go to the path :

Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk

Open file SDKSettings.plist and check value for CODE_SIGNING_REQUIRED. If it is set 'NO' then set it 'YES'.

Now relaunch the XCode. If it does not work again, then clear XCode DerivedData folder.

see : this

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!