CI/CD Mac Builds Fail IPA-Path or PKG-Path - xcode

I am deploying a mac build with bitrise and it is failing at the step
Deploy to App Store Connect with Deliver
Here is the error
Issue with input: no IpaPath nor PkgPath parameter specified
When I try to upload the mac app through organiser it fails with error
asset validation failed missing provisioning profile apps must contain a provisioning profile

Related

Xamarin.ios Error MSB6006: “codesign” exited with code 1 When Trying to Archive for Publishing

I am having an error like Xamarin.ios Error MSB6006: "codesign" exited with code 1 except this is when I am doing "Archive for Publishing" which is a step to publish Xamarin.ios. Can you guys please assist me with this? Thank you.
About publishing to App Store :
First , need to Create and install an App Store provisioning profile .
iOS uses provisioning profiles to control how a particular application build can be deployed. These are files that contain information about the certificate used to sign an app, the App ID, and where the app can be installed. For development and ad hoc distribution, the provisioning profile also includes the list of allowed devices to which you can deploy the app. However, for App Store distribution, only certificate and App ID information are included since the only mechanism for public distribution is the App
Store.
Second, Update the Release build configuration
The last , Build and submit your app .
Note : If using Automatical Provisioning will see a Team Account there .
Or Manual Provisioning will select the provisioning file directly .

Build failed with CrashlyticsOrgIdException

I just integrated the new Firebase SDK following these instructions:
https://firebase.google.com/docs/crashlytics/get-started-new-sdk
It's working with debug builds, but I get this exception on release build:
java.io.IOException: com.google.firebase.crashlytics.buildtools.exception.CrashlyticsOrgIdException: Could not fetch Crashlytics Org Id
Any idea?
I was having the same error when trying to build a release APK, but it wasn't going away.
I realized that you need to generate at least one crash in Firebase Crashlytics before your Org Id becomes available.
After my first crash was visible in the Firebase Crashlytics Report page, release build started working.
So, make sure to follow the Firebase doc and run a test crash in debug before you try to build release.
There seems to be a bug with the new firebase crashlytcs SDK where the Org Id is not generated unless the app is run with the firebase crashlytcs set up.
I followed the older sdk documentation which uses Fabric and ran the app with that. This is the older doc : https://firebase.google.com/docs/crashlytics/get-started?platform=android
Update to the new crashlytics SDK then and the project should build for you now. This is the new doc : https://firebase.google.com/docs/crashlytics/get-started-new-sdk?platform=android
You need to go through all steps in Firebase web console in Crashlytics section until you'll see:
Build and run your app
We'll be listening for your app to communicate with our servers.
Then you can build an apk.

ionic build package error for ios - code sign error

I'm struggling in getting my app ready for submission to Apple App Store...
I have valid ios development and distribution certificates and provisioning profiles.
I can successfully build my app via Xcode using development certificates and provisioning profile and works fines on test device i.e. iPhone 4s.
However, when I change the 'Code Signing Identify' setting in Xcode to use my Apple distribution certificates and set the Provisioning Profile to the production profile, the app builds successfully but when Xcode tries to run the app on the iPhone, it throws an error: 'App installation failed. A valid provisioning profile for this executable was not found'.
Not sure if the above is related, when I try to build the app using ionic package CLI command; 'ionic package build ios --release --profile [PROFILE-TAG]' I get this error:
CheckCheck dependencies
Code Sign error: No code signing identities found: No valid signing identities (i.e. certificate and private key pair) were found.
For info, I have created the ionic security profile as suggested here: Security Profiles
I'm using:
OS X El Capitan
Xcode 7.2.1
Cordova 6.0.0
Ionic version: 1.2.4
Happy to provide more info if required. Thank you.
As you have mentioned in the question
However, when I change the 'Code Signing Identify' setting in Xcode to use my Apple distribution certificates and set the
Provisioning Profile to the production profile, the app builds
successfully but when Xcode tries to run the app on the iPhone, it
throws an error: 'App installation failed. A valid provisioning
profile for this executable was not found'.
You can't directly run the build with the production profile/certificate in the device, to directly run from the xcode you have to build it with the development provision profile
If you want to test your production build before submisson you can download it with the TestFlight, it will be easier and better way of checking the build as same build will go for the submisson
If you need help with testflight you can refer doc here:
Apple Doc:Beta testing with testfligjt
Apple Doc: Distribute your app with testflight
Ray wenderlich Testflight tutorial
App which signed with an App Store provisioning profile can only be installed that downloaded from App Store, and for testing production behavior, you can generate an Ad-Hoc profile to sign your app. Ad Hoc Provisioning Profiles in Depth and How to

Xcode bot error: Early unexpected exit, operation never finished bootstrapping

I have a project written in Swift with a main target and two test targets: one for unit testing using quick framework and it has 3 KIF tests.
The other target has the XCUITests.
So whenever I run Xcode bot integration with our Xcode CI Server, I get the following error:
Bot Issue for Acceptance Bot (error)
Integration #63 of Acceptance Bot
Open in Xcode: xcbot://iosci/botID/1229919cecfcd510f090e37aed014a23/integrationID/16a3709d3ae008a68a65ff2fe9bb5a7b
Assertion: Test target MyUITests encountered an error (Early unexpected exit, operation never finished bootstrapping - no restart will be attempted)
File: (null):(null)
Introduced 2 integrations ago
Full logs for this integration are attached.
I get this error when I run it into a simulator integration though it runs fine when I connect the CI server with a physical device and run it.
Note: I'm using Xcode 7.3 with Carthage 0.11.
I was facing the same error (although I was using fastlane to run my UI Tests).
The issue was due to the simulator being stuck on a system alert which the UI Tests did not handle. After that all my tests failed and subsequent runs continued to fail as the simulator was not responding.
I logged into the machine and click OK on the disrupting alert and everything was back to normal.
In my case the alert came up since the application was trying to register of APNS and the
"App Name" would like to enable Notifications alert was displayed. Skipping the APNS registration for UI Tests prevented the issue from popping again.

Apple OS X Server (Xcode CI service) can't find provisioning profiles

I configured dedicated Mac mini with OS X Server for Continuous Integration with XCode5, added git repo and created bots. I am trying to integrate bot and get error
Specified PROVISIONING_PROFILE (29DAD4E2-6155-4395-AF33-2C872BC32504) not
found and no CODE_SIGN_IDENTITY specified. Ignoring PROVISIONING_PROFILE
for now. This will become an error in the future.
Server was added to Developer Team and I can see it in member center at special page "Servers". I think that server should retreive profiles from Developer Center for build bots, but it doesn't work.
How can I fix this?
I think that problem resolved. I checked server logs (Xcode -> Service log) and find that device list and provisioning profiles are correct downloaded after relogin to team (saved to
/Library/Server/Xcode/Data/ProvisioningProfiles
(from comments)
With the release of OS X Server 3.2.1, the provisioning profiles have been relocated to /Library/Developer/XcodeServer/ProvisioningProfiles
with _teamserver owner). Server download only automatic generated profiles ("iOS Team Provisionong Profile: bundle id") and you should choose this profile in target settings and commit to your VCS.
Adding Developer Account in Xcode->Preferences worked for me.
My environment:
Xcode 7.* and Server 5.
I have added my server to developer team

Resources