Submitting iOS app to app store invalid code signing entitlements - ios

I'm desperate! I have a deadline and I can not post! Please someone help me

According to Joe Regan from possible duplicate post:
Xcode Preferences
Accounts tab
Select your Apple ID
Hit the View Details button in the Apple ID detail panel
Hit the Refresh button in the lower left corner
This post from the iOS Developer Library may also help you:
Setting up Xcode to automatically manage your provisioning profiles.

I have also faced this issue when i try to make ipa file for App Store.
- only you have to check whether "Any iOS SDK" is selected or "Any OS X SDK" is selected in Build settings?
If you have selected "Any iOS SDK" then it will always shows this error message again and again in new XCode. So, go to your app->Target->Code Siging-> and remove "Any iOS SDK" and select "Any OS X SDK".
follow same process for Project section also. Now, clean and rebuild your project. It will be done.

Related

Xcode error: Code signing is required for product type 'Application' in SDK 'iOS 10.0'

I have Xcode 8 installed on OS X El Capitan.
I get this error:
Signing for "target" requires a development team. Select a development team in the project editor.
Code signing is required for product type 'Application' in SDK 'iOS 10.0'
To add developer account to Xcode:
Press Cmd ⌘ + , (comma)
Go to Accounts tab
Follow the screen shot below to enable development team:
At least in some cases, it might also be necessary to trust your Developer Profile on the mobile device. If you see the "Untrusted Developer" error dialog on the mobile device, see this Q&A.
With Xcode-8.1 & iOS-10.1
Add your Apple ID in Xcode Preferences > Accounts > Add Apple ID:
Enable signing to Automatically && Select Team that you have created before:
Change the Bundle Identifier:
Code Signing to iOS Developer:
Provision profile to Automatic:
You can now run your project on a device!
In case you are still having this problem, click on the Tests and select a team for them too.
To run your app on a real device, you need to have an Apple ID, and have registered your device with that ID. That is why you are getting this error.
Here's how you do it.
Go to the project Navigator. Cmd-1 if you can't find it.
Click the project target dropdown and pick Target.
Click on the Team dropdown and pick add an account.
Sign in with your Apple ID that is linked to your developer account, or just your Apple if you don't have a dev account.
If you haven't registered your device with that account yet, a button will appear, something like 'Register device'. Click that and Apple will register the device and do the certificates and code signing. (Oh my unicorns certificates and signing is so much easier than it used to be)
Pick your physical device and hit run and it should load onto your device without error.
Well, after I did all those things I still got the errors so I closed Xcode and opened it up again and then it worked.
Xcode 11.4
Click on:
Your project
Signing & Capabilities
Select your Team.
Make sure you add the team on both Debug and Release tabs.
For those that are going to come here after me, if it's Xcode 11 and iOS 13 then your layout might look a little different than what you see in the main answer to this question.
Firstly, do this as it was mentioned in the answer: Add your Apple ID in Xcode Preferences > Accounts > Add Apple ID.
Then click on the project name which is located in the left panel. Then you'll get a window of settings. Then look for "Signing & Capabilities" and that's where you'll be able to see "Team" and select your name as the option.
Recently had the issue on Xcode 11 beta 2:
Select your project on the left side panel
Find the "Signing & Capabilities" tab for your target
If your target doesn't have the "Signing & Capabilities" tab (in my case only the test target had it), open the build settings for your project and click "All" instead of "Basic"/"Customised". Find signing under the settings and make sure you've got a Development team set up.
Repeat the same step for your test target if needed
If you need to disable the team for now, as you don't have a development account, just change the target at the top menu to iPhone instead of a generic iOS device or real device.
For those using Ionic and receiving this error - you need to open your $project_dir/platform/ios/$project_name.xcodeproj - then follow the steps listed in the "answer"
Select team in the general settings of the target
Select the development team in both project and target. For the rest, set to "automatic" and then it will work.
I had this error on my React Native project, weirdly enough I thought I was NOT editing the correct .xcodeproj file! I went into my project directory './appname/ios' and opened the project file and edited my team name into the project and it started working.
Go to the bar where you have file, edit, view etc
Go on view -> Navigators -> Show Project Navigator -> Click on team -> Select yours.
Enjoy 😁
Downgrading the iOS development Target from 12.1 to 12 fix the issue for me as I don't have a dev team configured.
in Xcode13: select your project -> in Navigatr bar you will see TARGETS -> Click on the project name below the TARGETS -> you will see the Signing& Capabilities
For me just change in the build settings to release from debug
enter image description here

Can't submit app to the App Store because the Archive button in Xcode is grayed out

I cannot archive my Xcode project and submit it to the App Store. The Archive button in Xcode is grayed-out.
I have a valid iOS Distribution Certificate in my Keychain and also created an App ID as well as a Distribution Provisioning Profile in the iOS Development Member Center.
I also checked Apple's troubleshooting guide for this issue, but their only suggestion hints to the Build section in the Scheme, where there is a checkbox to activate/deactivate the Archive functionality. However, that checkbox is checked in my case.
Any ideas what I might be missing?
Make sure you've got an actual device selected rather than the simulator (or select Generic iOS Device)!
This will work:
This won't:

How do I code sign ios app using xcode ? (For clients)

How can I code sign Ios app using xCode for a client. He already sent me a certificate and a provisioning profile but how to use them to code sign the app.
Notes:
1- I don't have an apple developer account.
2- the app is developed by Unity.
3- I used cocapods for google play services to work on Ios this is how I used it (Check out FaHu answer).
Please help I've never used xCode before so am new to Ios in general if you can provide a step by step that will be so appreciated as am stuck to do this for a month and a half.
First of all, import the Development Certificate into Keychain Access by clicking on it. Then, go ahead and add the provisioning profile to Xcode by clicking on it as well.
In Xcode, go through the following steps:
In the upper left corner, click on the Xcode project icon
Go ahead and click on PROJECT, then Build Settings at the top.
In the next view, scroll down until you find the "Code Signing" area. For "Code Signing Identity", go ahead with the name of your Certificate (click on the current value for a dropdown). You do that for both, "Debug" and "Release" as well as for "Any iOS SDK". Then, you click on the provisioning profile and choose your clients profile.
Repeat steps 2 & 3, but this time not for PROJECT, but for your TARGET on the left side. Also, For the target go to the "General" tab and choose the Team your Certificate is bundled to from the dropdown window.
Be sure to login with the Apple ID the certificate is bundled to. You can do that in the Xcode settings (cmd + ,).

Xcode eligible Devices

I have just started developing games for iOS devices. Recently i got a new macbook, and when to run an app from Xcode my devices are listed as : "ineligible devices". It seems like Xcode cannot see that I am a developer, I have of course signed in as my developer account under preferences. When I did this the first time it said "private key missing", then i exported my developer profile from my last mac, and now it says valid, but it has not solved my problem.
Helt would be really appreciated, if I should specify something please tell me:)
Thanks
Anders
Go Xcode cmd+, to preferences than Accounts under your AppleID double click Team and than click left down corner button.
Note that you have to be logged in..
Please be sure of two things:
1) your device is in your Provision Profile
2) your app's target ios version is less than or equal to your device's ios version.
Hope these help.
Change your deployment target.

None of the valid provisioning profiles include the devices

I have removed some of the devices from the provisioning profile from apple portal for adhoc distribution and downloaded and installed it in xcode 6.
But upon archiving the project it shows the error for missing devices and invalid provisioning profile .
I have wasted 3-4 hours regarding this issue but found no luck.
Any kind of help would be greatly appreciated.
I just had this error as well. I am not sure if all of these steps are required, but the is exactly what I did to fix it, and it worked for me...
On the device, I removed the provisioning profile that was in General -> Profile.
In Xcode, under window tab open up the "Devices" window. (shift+cmd+2)
Choose the device and copy its identifier
Login to developer.apple.com and go to the "Certificates, Identifiers & Profiles" area
If the device in question is not registered, register it in the "Devices" area. (My device was not registered, so I registered it)
In Xcode preferences under Xcode tab, go to the Accounts tab and choose your Apple ID.
Choose the identity from the list and then hit the "View Details..." button.
Under "Signing Identities", only "iOS Development" was listed.
Click the "refresh" button on the lower-left of this details page.
I was informed that I didn't have a distribution certificate and asked if I wanted Xcode to request one for me. I chose Yes (or Request)
'iOS Distribution" then showed up also, just under the "iOS Development" entry
Hit the "Done" button
Exit from the Xcode preferences
Choose the Target for your project, then choose the "General" tab
Choose the "Team" dropdown and pick your team, even if it is already selected. This causes Xcode to refresh its info about the Team.
At this point, my warning next to "Team" went away. I then tried to run my app on the problem iOS device again and it worked as expected.
I hope that by following these steps, it will at least help you get closer to fixing your problem.
I only have this problem when archiving so I do not bother to investigate, unplug the iPhone and archiving works just fine.
In my case I needed to remove the Team ID from the bundle identifier in targets settings > General.
If you have the Team selected below this id will be added automatically.
I followed a lot of the instructions out there about resetting profiles and restarting xcode but still had no luck. Eventually I set team to 'none' and reset the build configuration as indicated here:
https://developer.apple.com/library/ios/qa/qa1814/_index.html
Bingo.
This was for a project I hadn't updated in a year or so and I had just updated to xcode 7.3.
I had a similar problem where my device was properly registered and had been working for some time before suddenly stopping. All of the provisioning profiles were up to date and I was still able to download other Xcode projects onto my device. My developer account was listed as the Team under Targets -> General -> Team but it still wouldn't work. So I switched Team to None and attempted to build the Project again. It gave me an error for not selecting a valid Team, but then an option popped up to choose one of the ones registered earlier in Accounts. I just clicked on my developer ID and that seemed to fix the problem.

Resources