No matter what I do when trying to build my iOS Framework, I get this error:
"CodeSign error: code signing is required for product type 'Framework' in SDK 'iOS 9.3'"
The only "solution" I found through searching was to ensure the framework's project's "Team" is set to None. That apparently solved the problem for some people, but I still get the same error.
Since that solution was for SDK 8.x I'm wondering if there's something new in SDK 9.x that no longer allows creation of unsigned frameworks?
If I sign it with my developer wildcard credentials, the consuming app is unable to upload to the app store because of a distribution certificate incompatibility.
So is an unsigned ios Framework impossible...?
It doesn't related to framework signing.
Your provisioning profile is wrong.
You must generate provisioning profile exactly.
And you must set up provisioning profile in Xcode Build Setting for code signing.
If your provisioning profile is correct, it will be matched definitely.
Related
I created an application with the Ionic Framework that allows me to make hybrid applications.
When I open my project on XCode, I have errors from XCode that I can not solve.
My errors are:
"Automatic signing is unable to resolve an issue with the target's
entities file"
"Provisioning profile ios team provisioning profile * doesn't include the aps-environment entitlement "
"Code signing is required for product type 'Application' in SDK 'iOS 10.3' "
I think the ID bundle has a mistake, however, I do not understand how to solve it.
How do I create a correct ID bundle without going through the project creation box since mine is already creating basic? (My ID bundle was generated by the global application's in the config.xml file)
Is it necessary to have a paid developer account to be able to create one? Or can I test my app simply on my phone?
Thanks in advance!
These errors you are getting because of the no Provisioning profile & Developer Certificate.
To Brief of what is provisioning profile & Developer certificates are, These are security certificates providing by Apple to make sure that the iOS application is built by identified developer.
If you see there is a check mark: "Automatically manage signing" on.
Because of that, it's trying to create provisioning profiles and
certificates automatically without any proper apple membership
account. That results in an error.
To run on a device, you don't need to have paid account. Any Apple ID will work. You need to have at least normal Apple ID and have to put any random bundle identifier there to run on your iPhone. (You can follow this link to How to run on iPhone without certificates)
Answering another question of yours: Yes, it's required to have Apple paid account to create a Bundle identifier. Even if you test it now on iPhone using above trick, to distribute in future to AppStore you need one.
I'm trying to build my app for iOS and the more I go further, the more errors I get. I spent hours dealing with them, and I need your help with some issues. I have all certificates needed.
When trying to Archive my app, I ge the following errors:
Check dependencies
Failed to create provisioning profile. There are no devices registered in your account on the developer website. Plug in and select a device to have Xcode register it.
No profiles for 'net.package.my' were found: Xcode couldn't find a provisioning profile matching 'net.package.my'.
Code signing is required for product type 'Application' in SDK 'iOS 10.2'
There are no devices registered in my account developer website? Huh? I don't have an iPhone, I bought mac for the develoyment process, why do I get this error and how I can overpass it?
No profiles for my package - why? what does it checks exactly? I followed every single step of the deployment proccess..
Code signing is required.. ok where?
My settings for signing:
If I pick my profile I get error about conflict, and that I should change the settings to iOS developer.
We use the Microstrategy SDK 10.5 with XCode 7.3.1 for developing an iOS App.
The built and internal test on our devices works fine, but we are not able to upload the App to the store due to the attached issues.
As I understand, the problem is related Microstrategy Framework and its embedded provisioning profile. While uploading we try to sign the app with our company certificate and add our provisioning profile, but the framework uses its own embedded provisioing profile, therefore the upload fails.
If we remove this framework the upload process to the store would works.
Any ideas or hints to solve this problem?
Kind Regards,
Alex
The easiest option is getting Microstrategy to deliver their mobile SDK as an unsigned framework. Xcode doesn't require framework targets to be signed. They can and should be signed in the embedding frameworks build phase of an application target.
If needed or preferred, you can also re-sign the framework yourself:
See if the Microstrategy SDK framework contains a provisioning profile (most likely named embedded.mobileprovision). If so, delete it.
Re-sign the framework with the command codesign --deep --force --sign "<< Your distribution identity name here >>" path/to/microstrategy.framework.
Likely not the cause of your problem, but for future readers who might get here having googled for the error number ITMS-90159 : you will also get this same error if you have mistakenly created the app record in iTunes Connect under a different team than the one you are using to code-sign your app.
I am using the iOS8 Dynamic Frameworks that I build myself and link within my iOS app. It was working fine in the simulator and on device, but when trying to archive a Release build for it, I keep getting this error:
Code Sign error: No matching provisioning profiles found: None of the valid provisioning profiles allowed the specified entitlements: com.apple.developer.ubiquity-kvstore-identifier, keychain-access-groups, com.apple.developer.icloud-container-identifiers, com.apple.developer.icloud-services, com.apple.security.application-groups, com.apple.developer.ubiquity-container-identifiers.
CodeSign error: code signing is required for product type 'Framework' in SDK 'iOS 8.3'
Within the app target -> Build Phases -> Embed Frameworks -> the framework is linked there, and "Code Sign on Copy" checkbox is checked.
Within the framework target -> Build Settings -> I have set Provisioning Profile to "Automatic", and for Code Sign Identity, under Release, I am using "iOS Distribution"
I have 3 different app targets that need to build off this Framework.
I'm confused:
does the framework need it's own AppID registered in the Developer Center?
does the framework need it's own Provisioning Profile?
can the framework use the same Entitlements file from the iOS app target?
Thanks.
I had the same problem but fixed it by:
Setting the team to None in the General tab of the target settings.
Changing this value seems to also reset the code signing params in the build settings, to 'iOS Developer' for both debug and release. If it doesn't then change these params yourself.
I can now build my framework with no errors.
The newly built framework can be checked for signing by entering codesign --display --verbose=4 FRAMEWORK_PATH into the terminal.
This tool should return: code object is not signed at all
The framework does not need its own app ID registered in the developer center, provisioning profile, or entitlements. I have an app on the app store that contains an app target, a today extension target, watch extension targets, and a framework target for shared code.
I was encountering this issue with a second app I was attempting to setup a build for, and I was able to resolve it by changing the signing for my framework to use automatic settings instead of "Don't Code Sign" (iOS Developer identity / Automatic profile). This causes the error to go away and the framework still seems to be resigned during the archive as one would expect. It seems that some build settings are required, even if it is just going to resign.
EDIT: It's worth mentioning that once you set it to automatic, you must also have a provisioning profile installed that is appropriate for the bundle id set for the targets being built (a wildcard development profile should suffice).
I have purchased a developer account from Apple. By taking development provisions, I have tested example app in device. Then I have downloaded cocos2d-iphone-1.0.1 and set it up. Then I created a project called FirstGame. When I compile sample cocos2D project on device, it gives this error:
Code Sign error: A valid provisioning profile matching the application's Identifier 'com.yourcompany.FirstGame' could not be found
In the build settings of project, the development profiles are not enabled. I am using Xcode 4.6.
Edit: I've found solution applying this solution.:
This has nothing to do with cocos2d. Just edit the bundle identifier of the project, and make sure you have correct provisioning profiles.
It should be com.ahmetatalay.FirstGame, not com.yourcompany.FirstGame which is default in cocos2d template.
Change it under Project Settings section of Xcode, to code sign it with your wildcard profile or the profile you created specifically for it.
See Apple's documentation for details:
http://developer.apple.com/library/ios/#documentation/ToolsLanguages/Conceptual/DevPortalGuide/CreatingandDownloadingDevelopmentProvisioningProfiles/CreatingandDownloadingDevelopmentProvisioningProfiles.html