When I archive my IOS app, it builds successfully but it shows an error: "Archive Missing Bundle Identifier", the weird thing is that I have the bundle identifier set correctly in these places:
- info.plist
- General > Identity > Bundle Identifier
- Signing & Capabilities > Signing > Bundle Identifier
The main issue is that it says that the archive is successful but when I go to the organizer it doesn't show up, so I can't distribute the app. If I go the path where the archive is generated and try to open it, it says that the archive is corrupt. I believe this issue has to do with the error "Archive Missing Bundle Identifier". Archiving was something that used to work in xcode 13, but it hasn't worked the first time in xcode 14 in my project (even if I follow the same steps).
These are the steps I take.
- I install dependencies using "npm i --legacy-peer-deps" (I use react-native)
- Then go to ios directory and there install the pods: "npx pod-install"
- I click: Product > Archive
- Wait 1 or 2 minutes while it archives
- Done
Once it finishes archiving it displays "Build Succeeded", but it also displays this error:
Archive Missing Bundle Identifier
Domain: IDEArchivedApplicationErrorDomain
Code: 1
Failure Reason: Archive content at path /Users/alex/Library/Developer/Xcode/Archives/2023-07-04/beunik_employees 4-07-23, 2.42 PM.xcarchive/Products/Applications/beunik_employees.app is missing a bundle identifer.
User Info: {
DVTErrorCreationDateKey = "2023-07-04 19:42:17 +0000";
}
System Information
macOS Version 13.2.1 (Build 22D68)
Xcode 14.3.1 (21815) (Build 14E300c)
Timestamp: 2023-07-04T14:42:17-05:00
I don't think it has to do with my provisioning profile since I archived a random project I downloaded from internet and used the same provisioning profile but this time it worked well, it didn't show that error. If it's of any use this is how it looks.
I have tried several things as suggested by this thread: Archives not showing up in Organizer for Xcode 4 but nothing has worked:
- Made sure the check box for show in Organizer is checked.
- In the build settings switch Skip Install -> Release to NO, for the build settings used for archiving.
I also tried reinstalling xcode or restarting the computer but no luck. I also tried rolling back the xcode version but my OS version doesn't allow me to do that.
If it's of any help here is my info.plist:
What I need is to be able to archive the project, see the archive in the organizer and be able to distribute it.