Error when archiving iOS application swift - ios

I am trying to upload my app to the app store, but when I archive the app, I get an error saying, "No non–expired provisioning profiles were found.
Xcode can attempt to fix this issue". It gives me an option to fix the issue, and when I press it, I get another error saying, "Unable to create a provisioning profile because your team has no devices registered in the Member Center. Please connect a device, enable it for development, and add it to the Member Center using the Organizer." And an error saying, "codeSign Error: code signing is required for product type "Application in SDK "iOS 8.4". What is causing this? How do I fix it?

to fix this
codeSign Error: code signing is required for product type "Application in SDK "iOS 8.4
open Build Settings of your target => Code Signing
then change "Don't Code Sign" to yours for "Code Signing Identity" row
You either could generate a provision profile by yourself in your developer account on developer.apple.com. After you need to download it and say to the xcode to use it (Build Settings => Code Signing => Provision Profile, if the xcode doesn't see the downloaded provision have to add it to ~/Library/MobileDevice/Provisioning Profiles/ folder). After all try to restart the xcode, clean up the last build and build all over again.

Related

Failed to create provisioning profile error

While I am trying to create .ipa file it shows the following error message like this.
Failed to create provision profile
There are no devices registered in your account on the developer
website. Plugin and select a device to have Xcode register it.
No profiles for "io.bundle identifier" were found
Xcode couldn't find any iOS App Development provisioning profiles
matching 'io.bundle identifier'.
First, check that you create the "Provisioning profile" correctly in the Apple developer web.
Second, close the Xcode, then reopen and relogin your apple account which in the Xcode account setting.
It just a normal problem in Xcode. Apple never fix it.

Xcode 10.1 : Provisioning profile signing certificate error

Xcode 10.1 shows error while archive the build. I have installed Xcode 10.1 in my mac machine. Xcode shows:
"Provisioning profile does not include the iphone developer certificates".
I have created all the certificates and installed in my mac. Can anyone please let me know to fix the issues.
This is a classic issue.
There are several ways to fix this, like enabling automatic signing etc (Recommended). But if you want to understand the reason for this error you need to look at the error message.
It says that the provisioning profile you have selected in the "General tab", does not contain the signing certificate you selected in the "Build settings" -> "Code Signing Identity".
Usually this happens if a distribution certificate has been selected for the debug identity under "Build settings" -> "Code Signing Identity".
If this happens under "Signing (Debug)" it might also be that the "Signing Identity" -> "iOS Development" is not included in the provisioning profile.
You can select your provisional profile and its related certificate from Signing into Build Setting.
Check attached screenshots for same.

Code signing error in Xcode 8

I want to run my app on my device instead of on the simulator, but every time I try to run it, I get a code signing error:
'AppName' requires a provisioning profile. Select a provisioning profile for the "Debug" build configuration in the project editor.
Code signing is required for product type 'Application' in SDK 'iOS 10.0'
I added a provisioning profile to the build settings under 'Code signing' but I still keep getting this error. Is there something wrong with my provisioning profile or am I looking in the wrong place? By the way, I used this provisioning profile on the previous version of Xcode and never ran into any problems.
To fix it, I set > TARGETS > General tab > Signing > Automatically manage signing = CHECK MARK
I had a similar problem and it was because my iPhone Developer certificate had expired. You can check this with the Keychain Access app in Utilities.

A Productivity App Built in Swift

I tried to build the sample code in Swift provided by Apple
A Productivity App Built in Swift
But when I ran it, it pop up an error like this:
"Command /Applications/Xcode6-Beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-stdlib-tool failed with exit code 1"
Does anyone know how to fix it?
The actual cause is because xcode cannot code sign:
iPhone Developer: no identity found
**error: Couldn't codesign /Users/zhaoj5/Library/Developer/Xcode/DerivedData/Lister-hehrkmcyuflnfucnsqcofjotmglo/Build/Products/Debug-iphonesimulator/com.example.apple-samplecode.Lister.ListerToday.appex/Frameworks/libswift_stdlib_core.dylib: codesign failed with exit code 1**
Command /Applications/Xcode6-Beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-stdlib-tool failed with exit code 1
This is because you are not a registered Apple Developer. If you go to project -> General, you will see there is a warning:
"This product type must be built using a provisioning profile, however, no signing identity or provisioning profile was specified, Xcode can resolve this issue by downloading a new provisioning profile from the member center."
There is a button "Fix Issue", you can enter your account information once you become a registered developer.
As the flip side to not being set up with a developer profile, I ran into this problem as a result of having duplicate certificates set up. Once I deleted all but one, Lister finally compiled.
As volatilevar mentioned, it's a problem with the project settings, though I assume you are a registered developer with access to the sample code and Yosemite beta. I had the same issue. The Provisioning Profile isn't selected because you downloaded the code and the previously selected profile doesn't exist!
If you installed Yosemite fresh, make sure you export your profile from Xcode where you were using it before and import it again in Yosemite.
Check that your profile and identity are correctly selected under General and Build Settings for the target.
If you need some guidance on moving your profile see exporting and importing.
My solution was to set both Code Signing and Provisioning Profiles to "Automatic" under My Project -> Target My Project ->Build Settings -> Code Signing Identity and Provisioning Profile

Third party Xcode project, no matching provisioning profiles found

I received a complete Xcode project from another developer. I can run the app in the simulator but I get the "No matching provisioning profiles found" error message when trying to compile it to my iOS device.
How can I get this to compile to my device? Changing the provisioning profile to my own under build settings doesn't work.
This error mean your provisioning profile is wrong. Check your provisioning profile installed and certificate are right. Check if your device is register for this provisioning profile too maybe you didnt add it to your provisioning profile

Resources