(Posted at end of another thread but someone sensibly suggested it may be worth a post of it’s own)…
Question is what are you supposed to do to get Jenkins building iOS ionic 1 projects and in particular how to avoid this error.
=== BUILD TARGET <myappname> OF PROJECT <myappname> WITH CONFIGURATION Release ===
Check dependencies
Signing for "<myappname>" requires a development team. Select a development team in the project editor.
Code signing is required for product type 'Application' in SDK 'iOS 10.2'
** ARCHIVE FAILED **
The key building bit of my jenkins step is this:
npm install --unsafe-perm=true
ionic state restore
ionic platform add ios
ionic resources
gulp sass
ionic build ios --release
Maybe I shouldn’t be needing to add the platform in each time or something, but others seemed to be doing this step (in quite old posts).
So, for this ‘development team’ error, I understand that normally (manually) you would open up XCode and set this up and I can do this fine but I want Jenkins to be building automatically.
I think the platform code is not under source control (by default - I think?) so when Jenkins gets the source the team is not set.
Are you supposed to put some XCode files under source control after opening XCode and setting the team?
I don’t see much(any) recent info on building iOS with Jenkins and dealing with this team thing (which seems to be a recent Apple change - about 6 months ago).
I would have thought many people would be building with Jenkins and iOS ionic but I am struggling to find answers on how to set things up right for the specific combination of Ionic, Jenkins and iOS.
(https://dpogue.ca/articles/cordova-xcode8.html1) I saw some info that Cordova had an update where you can pass though the team but I’m not sure how you get that working with ‘Ionic Build ios’ commands. Are you supposed to do something different, call cordova direct, or xcode itself with something similar?
Hopefully this makes some sense.
Thanks,
Michael