Xcode 7 GM iOS Archiving Error: code sign mismatch - ios

I'm currently working on iOS/WatchOS2 app. And I want to upload to iTunesConnect.
I created all provision files, selected them in project build settings. But, when I try to archive my project, Xcode 7GM says:
error: Embedded binary is not signed with the same certificate as the parent app. Verify the embedded binary target's code sign settings match the parent app's.
Embedded Binary Signing Certificate: - (Ad Hoc Code Signed)
Parent App Signing Certificate: iPhone Distribution: INTER***. (***)
All certificates are for iOS distribution
AND, at first, I though that Xcode 7 GM has a bug, as beta versions. But, when I tried to archive my project on other mac (also Xcode 7GM), it archived silently. No errors.
What's going on?
I reseted project settings, Xcode settings, deleted old Xcode7Beta, reinstalled Xcode7GM, created new project and added my sources, but no effect.
What should I do?
How to archive my app?
From where Xcode gets Ad Hoc?
Is it possible that Xcode 7 GM produces this error as it is not release version?

Related

Error trying to copy IPA from Xcode Devices&Simulators to device

I created one IPA via Xcode.
Product -> Archieve -> Distribute Ad Hoc for target real devices any ios armv7, arm64
(so far process was same as always and had it working before with iphone)
The only thing that is changed is that I am using one IPAD instead of old Iphone (sold)
I have registered the IPAD already under my devices at https://developer.apple.com/account/resources/devices/list
Then I deleted old Xcode provisioning profiles following the instructions here
by going to ~/Library/MobileDevice/Provisioning and deleting all. Then I saw Xcode "fixing" recreating with todays date the new profiles.
Still issue persist, when I drag and drop IPA to device I get error "Unable to install AppName"
The error message is very short and does not give any detailed information of possible causes.
More details:
Info.plist
<key>MinimumOSVersion</key>
<string>9.0</string>
IPAD is already >= 9.0 version as well
The host device that I used to create the IPA has arm64 architecture, macbook m1 2021
How can I fix this and manage to install the IPA into my ipad and real test the app ?

Xcode 6 Trying to Sign iOS 8 App like an OS X App

Xcode 6.0, iOS 8.0
I've been happily signing and shipping betas of my app all week. Suddenly today, I am getting this error in Xcode's Organizer when I try to Export the app for ad hoc distribution:
Failed to locate or generate matching signing assets ... No matching provisioning profiles found for "Applications/ PilotPro.app"
With a path like Applications/*.app it seems like Xcode is trying to sign it like a Mac app or something.
I have re-downloaded provisioning profiles until my fingers bleed, and I get no errors during building, just this one during export in Organizer.
Any ideas?
It turns out this solved my problem: https://stackoverflow.com/a/10356589/1142348
I deleted the entitlements in my app and added them again and the problem was solved.

Xcode code signing issue

I was trying to build and archive my app to submit it, when I realized that I had used xcode 6 beta to do that. So I closed it and opened xcode 5 and did all of this again. When the Xcode Organizer tries to validate the archive it gives me following error:
What I have tried:
Dis/Enabled iCloud function
Regenerated provisioning profiles
setup all profiles correctly in build phases
Any idea how to fix this???

Installing ipa on device not working

I have a problem installing an ipa via diawi.com. It says that it is unable to install it.
It was working fine before, until one morning when Xcode said that it cannot find the provisioning profile on my mac.
So I generated another ad hoc distribution profile (with the same app id, and included the device UDID).
I installed it manually in Xcode and set the Code Signing Identity and Provisioning Profile fields in the BuildSettings->CodeSigning in both PROJECT and TARGETS.
I even tried sync-ing the apple account profiles with Xcode and i get the same result.
Also, old uploaded ipa-s on diawi still work (so it's not something they changed).
Using Xcode 5.1 (58130a)
Trying to install it on an iPhone 4S with iOS 7.0.
The Deployment Target and iOS SDK fields in Build Settings are set to iOS 7.1

Xcode 4 distribution build VS Xcode 3 distribution build

I'm able to do a distribution build using xcode 3.4 but in Xcode 4.2 I keep getting the error:
The signature was invalid, or it was not signed with an iPhone Distribution Certificate.
I have a valid distribution certificate in the key chain and can get my app in iTunes Connect fine using Xcode 3.2 so I dont get it.
Is Xcode 4 having a hard time finding my distribution certificate and if so how can I resolve this?
Is the profile visible in the organiser window in Xcode 4, and definitely selected against the build settings you are using? You may need to re-import the profiles into Xcode 4, I don't think they are migrated when the new version is installed.
To see what schemes / build settings are in use, go to Product -> Edit Schemes. This will have a list of your different schemes and the build configuration attached to each one. Check what your Archive scheme has for a build setting.
Now, select your project at the top of the navigator on the left hand side. You'll have two tabs in the middle, Info and Build Settings. In Build Settings, scroll down to Code Signing, and under Code Signing Identity for the build setting you are using for Archive, check that it is using the correct profile.

Resources