Setting code signing settings for Xcode project with xcode-project use-profiles does not override platform-specific provisioning profile assignations. For example, if my project file already contains entry such as
Now, if the original profile that is referenced for specific SDK does not exist in ~/Library/MobileDevice/Provisioning Profiles, which might very well be the case when build is running on a VM from CI environment, then xcodebuild build is destined to fail.
Changes to code_signing_manager.rb ensure that all PROVISIONING_PROFILE_SPECIFIER build settings for target are properly updated when xcode-project use-profiles is launched.
Setting code signing settings for Xcode project with
xcode-project use-profiles
does not override platform-specific provisioning profile assignations. For example, if my project file already contains entry such asthen running
xcode-project use-profile
just adds anotherPROVISIONING_PROFILE_SPECIFIER
definition for the target:which results in a conflicting provisioning code signing setup because both profiles are defined in the
project.pbxproj
file:Now, if the original profile that is referenced for specific SDK does not exist in
~/Library/MobileDevice/Provisioning Profiles
, which might very well be the case when build is running on a VM from CI environment, thenxcodebuild build
is destined to fail.Changes to
code_signing_manager.rb
ensure that allPROVISIONING_PROFILE_SPECIFIER
build settings for target are properly updated whenxcode-project use-profiles
is launched.Updated actions:
xcode-project use-profiles