Missing com.apple.application-identifier error for the generated distribution provisioning profile via Fastlane - testflight

I can not upload a new build to AppStore because I get this error
when I tap info icon next to the distribution provisioning profile:
Entitlements: 6 included, 1 Missing
Missing com.apple.application-identifier
Although I already set an app identifier in info.plist
Is com.apple.application-identifier different than application-identifier?
also how can I add it in Entitlements?

Quick fix
Install the "Transporter" app from the MacOS app store.
OPEN Xcode 11.5 archive your project
Close Xcode 11.5 -> Command + Q
Open then Xcode 12 Beta
From Xcode's organizer, select your archive and press "Distribute App"
Instead of "Upload", select "Export" and proceed as usual.
Drop the exported .ipa into the transporter and press "Deliver".
And it Works!

I solved it with this:
(I exported to upload it to a firebase distribution)
Archive with Xcode 11.6
Quit Xcode 11.6
Open Xcode 12 beta2 (don't open the project)
Open Window -> Organizer
Distribute the App "normally"

Related

Xcode 11, Command CodeSign failed with a nonzero exit code

Ever since updating (against my will) to Xcode 11, I'm getting this error when I try to build my project:
CodeSign /Volumes/HDD/OpenFrameworks/of_v0.9.8_osx_release/apps/plus-pool-light/pplight-ofx-098/bin/pplight-ofx-098Debug.app (in target 'pplight-ofx-098' from project 'pplight-ofx-098')
cd /Volumes/HDD/OpenFrameworks/of_v0.9.8_osx_release/apps/plus-pool-light/pplight-ofx-098
export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
Signing Identity: "-"
/usr/bin/codesign --force --sign - --entitlements /Volumes/HDD/OpenFrameworks/of_v0.9.8_osx_release/apps/plus-pool-light/pplight-ofx-098/build/pplight-ofx-098.build/Debug/pplight-ofx-098.build/pplight-ofx-098Debug.app.xcent --timestamp=none /Volumes/HDD/OpenFrameworks/of_v0.9.8_osx_release/apps/plus-pool-light/pplight-ofx-098/bin/pplight-ofx-098Debug.app
/Volumes/HDD/OpenFrameworks/of_v0.9.8_osx_release/apps/plus-pool-light/pplight-ofx-098/bin/pplight-ofx-098Debug.app: code object is not signed at all
In subcomponent: /Volumes/HDD/OpenFrameworks/of_v0.9.8_osx_release/apps/plus-pool-light/pplight-ofx-098/bin/pplight-ofx-098Debug.app/Contents/Frameworks/GLUT.framework
Command CodeSign failed with a nonzero exit code
I've tried cleaning my project, resetting my login keychain, and restarting my computer, but I still get this error... what to do?
I am building an OSX App using OpenFrameworks, not an iOS App. When I build it in Xcode 10.3 works fine with no errors.
The parts of this question that are unique is that this is for Xcode 11, not 10, and none of the answers for that other question worked for me!
I've resolved the same exact problem by:
Add --deep to the "Other Code Signing Flags" in the "Build Settings".
In the "Signing & Capabilities" of your target click on "+ Capability" in the top left corner and choose "Hardened Runtime".
Then turn on "Disable Library Validation" in the list.
I don't really know if there's any drawbacks by using this capability, however my application compiles and works fine both on macOS and iOS.
You can get this error if you have added a folder to your project as a 'folder reference' (the project will have a blue folder logo in Xcode)
Remove the folder (Trash)
Add folder and select 'Create Groups' instead of 'Folder Reference' at the dialog
Add Folder Dialog
I got the same error after I upgraded to XCode-11 this morning. Builds in the simulator but not on device.
This thread helped fix the issue which I summarized below.
https://stackoverflow.com/a/52628909/9286768
Open keychain access.
Lock the 'login' keychain. (right clicking on "login" in the upper left
panel)
Unlock it, enter your PC account password.
Clean Project in the product menu.
Build it Again.
I fixed this by adding --deep to Other Code Signing Flags in the Build Settings > Signing
I had the same issue for all my Carthage Frameworks, the solution is:
Under Target-> [AppName] -> General -> "Frameworks, Libraries and
Embedded Content"
Select "Do Not Embed" for the option next to the problematic
framework.
More info are in this thread
NOTE: this might not fully solved the issue, never forget to try clean the project, restart Xcode even restart Mac sometimes.
I solved the problem as follows:
After adding 2 ".png" files, Xcode (Version 13.2.1 (13C100)) would not compile anymore. I integrated these 2 files in a .rtf file (generated from Xcode) and I succeeded in compiling again. That's how it goes.
I fixed the problem by making sure the Code Signing Identity in Build Settings was correct - not just general Apple Development and then cleaned the Build Folder in in the Product Menu. When I ran it again it built without error.
I resolved a similar error in Xcode 13 by only changing my Base SDK to the latest SDK (i.e. iOS 15).

"Failed to load Project , incompatible project version" pop up appears when I open from code of xcode 9.3 in xcode 9.2

I created a project in Xcode 9.3, and When I open the same project in Xcode 9.2, it shows "incompatible project version".
- I changed deployment target version
It asked to sign in with the team to run the project in Xcode 9.3.
Without signing in, it shows error and does not get deployed.
If you can open the Project
You can simply change your Project Format (like the image)
Click to your Project File in xcode and change it
If you can't open the project (projectName.xcodeproj) normally
Control-click on the project file, select Show Package Contents, and then open your project.pbxproj file and make the change for:
compatibilityVersion
objectVersion
For Xcode 10.0
compatibilityVersion: "Xcode 10.0"
objectVersion :51
For Xcode 9.3:
compatibilityVersion: "Xcode 9.3"
objectVersion :50
For Xcode 8.0-9.2:
compatibilityVersion: "Xcode 8.0"
objectVersion: 48
You can find the project.pbxproj file by right clicking the .xcodeproj file in the project folder, then select Show Package Contents
I edited Datasun's comment above to include correct info but here is info for other Xcode versions. You must change both compatibilityVersion and objectVersion.
In the project.pbx file you need to make two changes:
compatibilityVersion
objectVersion
For Xcode 9.3+:
compatibilityVersion is "Xcode 9.3"
objectVersion is 50
For Xcode 8.0-9.2:
compatibilityVersion is "Xcode 8.0"
objectVersion is 48
For Xcode 6.3-7.3.1:
compatibilityVersion is "Xcode 6.3"
objectVersion is 47
Changing project format is the right way to do it. But this requires you to be able to open the project, which is not the case. Therefore you can manually edit project.pbxproj (you have to open *.xcodeproj to see this file) and look for compatibilityVersion:
compatibilityVersion = "Xcode 9.3";
Then you can set the required version to a lower one. In this case it would be "Xcode 9.2", which requires you to also set the "objectVersion = 50" to 48. This value directly correlates to the Xcode project format.
Important: After this step you should be able to open Xcode and to change project format again from within Xcode to make sure any missing fields are updated accordingly.
For some people who are getting problem for searching the compatibilityVersion and objectVersion .Please follow these steps :
1)compatibilityVersion : Click on your .xcodeproj project in upper right (There are two icons) click on first Identity and type. And change the Project format .
2). objectVersion : Select .xcodeproj file with right click, select show package contents, now open the .pbx file with textedit and replace the 50 with a 48 (or something else)
Refernce : https://github.com/pwn20wndstuff/noncereboot1131UI/issues/2
Select .xcodeproj file with right click -> select show package contents
Now open the .pbx file with textedit / vscode
Replace the compatibilityVersion = "Xcode 9.3 with compatibilityVersion = "Xcode 9.2 and objectVersion as 50. objectVersion: 50

Xcode Provisioning Profiles Location

Where are the Provisioning Profiles located in Xcode 8.3.3 within the project and/or file directory?
Where they have been for older versions of Xcode: ~/Library/MobileDevice/Provisioning\ Profiles
Provisioning profiles are not stored with the project. Xcode has a common area and the profile is pulled when you build and bundled with the ipa.
Go to the Finder
From the “Go” menu navigate down to “Go to Folder”
or
Hit Command+Shift+G from the Mac OS X desktop or a Finder window
Search below Path
~/Library/MobileDevice/Provisioning Profiles
FWIW if you're building into a physical device, then if you dig through your derived data, you can find:
/Users/my_username/Library/Developer/Xcode/DerivedData/MyCompanyName-ebd35ntnhtdhykyasixtkvjjqlcsu/Build/Products/Debug-iphoneos/CoolAppName.app/embedded.mobileprovision
In the Build/Products/Debug-iphoneos directory you'll find your app name just like:
CoolAppName // it won't have any `.app` extension or anything.
You just have to right click on it and hit 'show package contents' or just change directory to that...
then find a file with .mobileprovision extension.
Remember you won't find this if you're building with simulator, because simulators, don't need provisioning profiles.
How to see what's inside?
Either just use Preview or see detailed instructions from Dev Forums - Quinn on how to dump it. e.g.
$ security cms -D -i ~/Library/MobileDevice/Provisioning\ Profiles/8d04addd-d7f5-4872-bd48-f6885bb67433.mobileprovision

Unable to authenticate the package: 805904647.itmsp

When i submit my app to the application loader I'm putting in my compressed game that i just right clicked and compressed because it will'nt let me click my archive button in Xcode. So i get these ERRORS
Unable to authenticate the package: 805904647.itmsp
ERROR ITMS-9000: "No .app bundles found in the package" at SoftwareAssets/SoftwareAsset (MZItmspSoftwareAssetPackage)
Can someone please help me fix my Xcode project so i can put it in the application loader
I have this problem developing my apps in XCode 7.3.1 with OS X El Capitan and then update to macOS Sierra and Xcode 8.
I can solve this problem following the next steps:
Archive your app with Xcode 7.3.1 (download in developer.apple.com)
When you archived your app, find your archive in the Organizer, and then:
"Show in finder";
"Show package contents";
In the "xx.xcarchive" file, find the "Products"-"Applications"-"xx.app"(xx is your app's name), "Show package contents" again;
Finally, you can see there has a file named"Info.plist",
open it;
Edit the value with a key named "BuildMachineOSBuild", I just change it to "16A323"(it's "macOS Sierra" 's version);
Edit the value with a key named "DTXcodeBuild" with the Xcode 8 version number "8A218a"
After that, you can upload this archive use Xcode 8 or Application Loader in macOS Sierra, whatever you want!
Info.plist
Use Application Loader of 2.9 version

Xcode Won't Compile To Simulator

I've just updated Xcode 4.5 via the App Store, from my previous version which I got from my Apple Developer Account. Since the update I can't compile any apps into the Simulator. I can compile onto a device, e.g. my iPhone.
The error I recieve is
fatal error: file
'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/
Developer/SDKs/iPhoneSimulator6.0.sdk/usr/include/Availability.h'
has been modified since the precompiled header was built
1 error generated.
go in ~/Library/Developer/Xcode/DerivedData/{project name + gobly-gook} and delete folder with your project name.
EDIT After suggestion
NOTE:
By default Library Folder is hidden so we can't see it.
So we have three way to use this hidden ~/Library folder
1.Unhide Library folder by following command to unhide ~/Library folder
chflags nohidden ~/Library
Now you can see Library folder as /Users//Library
2. Open GO menu of finder and press Alt key and Library will be visible as new menu item.
Select that to open Library folder
3. You can access ~/Library folder by Terminal.
There's easiest way: Just "clean" project (Product > Clean)
You can just open the Organizer (top-right corner of XCode), go to the Projects tab, select your project on the left and then delete the Derived Data.
This happened when I updated Xcode from 6.0.1 to 6.1
I cleaned the project and could compile successfully!!

Resources