Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-38777

Signing for "Unity-iPhone" requires a development team

    Details

    • Similar Issues:

      Description

      I recently setup a Macbook Pro with jenkins to automatically build Unity iOS projects. No mather the settings i use for signing the .ipa file i get

      === BUILD TARGET Unity-iPhone OF PROJECT Unity-iPhone WITH CONFIGURATION Release === Check dependencies Signing for "Unity-iPhone" requires a development team. Select a development team in the project editor. Code signing is required for product type 'Application' in SDK 'iOS 10.0' BUILD FAILED

      The following build commands failed: Check dependencies (1 failure) Build step 'Xcode' marked build as failure Finished: FAILURE

      How can i set the team automatically so the signing works?

      Full log from Xcode build step

      Exiting batchmode successfully now! [UnityTest] $ /bin/sh /var/folders/9d/lhvckkyx4hs8vhc_yqw8ynnr0000gn/T/hudson6913529922758759577.sh Working directory is /Users/kristoferboman/.jenkins/workspace/UnityTest/Exports/iOS/BadMen-Jenkins. [BadMen-Jenkins] $ /usr/bin/xcodebuild -version Xcode 8.0 Build version 8A218a Fetching marketing version number (CFBundleShortVersionString) from project. [BadMen-Jenkins] $ /usr/bin/agvtool mvers -terse1 Found marketing version (CFBundleShortVersionString): 1.0. Marketing version (CFBundleShortVersionString) found in project configuration: 1.0. Fetching technical version number (CFBundleVersion) from project. [BadMen-Jenkins] $ /usr/bin/agvtool vers -terse No marketing version found (CFBundleVersion) Technical version (CFBundleVersion) found in project configuration: . Marketing version (CFBundleShortVersionString) used by Jenkins to produce the IPA: 1.0 Technical version (CFBundleVersion) used by Jenkins to produce the IPA: Cleaning build directory: /Users/kristoferboman/.jenkins/workspace/UnityTest/Exports/iOS/BadMen-Jenkins/Build/AdHoc Cleaning up test-reports : /Users/kristoferboman/.jenkins/workspace/UnityTest/Exports/iOS/BadMen-Jenkins/test-reports [BadMen-Jenkins] $ /usr/bin/security list-keychains -s /Users/kristoferboman/Library/Keychains/login.keychain [BadMen-Jenkins] $ /usr/bin/security default-keychain -d user -s /Users/kristoferboman/Library/Keychains/login.keychain [BadMen-Jenkins] $ /usr/bin/security unlock-keychain -p ******** /Users/kristoferboman/Library/Keychains/login.keychain [BadMen-Jenkins] $ /usr/bin/security show-keychain-info /Users/kristoferboman/Library/Keychains/login.keychain Keychain "/Users/kristoferboman/Library/Keychains/login.keychain" no-timeout =========================================================== == Available provisioning profiles [BadMen-Jenkins] $ /usr/bin/security find-identity -p codesigning -v 1) E47B932AF536F96E88FE3177D94F3909B8DA46F2 "iPhone Developer: Kristofer Boman (98UA3U6J4X)" 2) A4E8CFDBE536D56BF5BD7206FE799DB46AE5B323 "iPhone Distribution: SOZAP AB (3KH49E5UZT)" 2 valid identities found == Can we find the requested provisioning profile ? [BadMen-Jenkins] $ /usr/bin/security find-certificate -a -c "iPhone Distribution" -Z | grep ^SHA-1 == Available SDKs [BadMen-Jenkins] $ /usr/bin/xcodebuild -showsdks iOS SDKs: iOS 10.0 -sdk iphoneos10.0 iOS Simulator SDKs: Simulator - iOS 10.0 -sdk iphonesimulator10.0 macOS SDKs: macOS 10.12 -sdk macosx10.12 tvOS SDKs: tvOS 10.0 -sdk appletvos10.0 tvOS Simulator SDKs: Simulator - tvOS 10.0 -sdk appletvsimulator10.0 watchOS SDKs: watchOS 3.0 -sdk watchos3.0 watchOS Simulator SDKs: Simulator - watchOS 3.0 -sdk watchsimulator3.0 == Available schemes [BadMen-Jenkins] $ /usr/bin/xcodebuild -list Information about project "Unity-iPhone": Targets: Unity-iPhone Unity-iPhone Tests Build Configurations: Release Debug If no build configuration is specified and -scheme is not passed then "Release" is used. Schemes: Unity-iPhone =========================================================== Going to invoke xcodebuild:target: Unity-iPhone, sdk: DEFAULT, project: DEFAULT, configuration: Release, clean: YES, archive:NO, symRoot: DEFAULT, configurationBuildDir: /Users/kristoferboman/.jenkins/workspace/UnityTest/Exports/iOS/BadMen-Jenkins/Build/AdHoc, codeSignIdentity: iPhone Distribution [BadMen-Jenkins] $ /usr/bin/xcodebuild -target Unity-iPhone -configuration Release clean build CONFIGURATION_BUILD_DIR=/Users/kristoferboman/.jenkins/workspace/UnityTest/Exports/iOS/BadMen-Jenkins/Build/AdHoc "CODE_SIGN_IDENTITY=iPhone Distribution" CODE_SIGN_RESOURCE_RULES_PATH=$(SDKROOT)/ResourceRules.plist Build settings from command line: CODE_SIGN_IDENTITY = iPhone Distribution CODE_SIGN_RESOURCE_RULES_PATH = $(SDKROOT)/ResourceRules.plist CONFIGURATION_BUILD_DIR = /Users/kristoferboman/.jenkins/workspace/UnityTest/Exports/iOS/BadMen-Jenkins/Build/AdHoc === CLEAN TARGET Unity-iPhone OF PROJECT Unity-iPhone WITH CONFIGURATION Release === Check dependencies [BEROR]Signing for "Unity-iPhone" requires a development team. Select a development team in the project editor. [BEROR]Code signing is required for product type 'Application' in SDK 'iOS 10.0' Create product structure /bin/mkdir -p /Users/kristoferboman/.jenkins/workspace/UnityTest/Exports/iOS/BadMen-Jenkins/Build/AdHoc/thescore.app Clean.Remove clean Build/AdHoc/thescore.app builtin-rm -rf /Users/kristoferboman/.jenkins/workspace/UnityTest/Exports/iOS/BadMen-Jenkins/Build/AdHoc/thescore.app Clean.Remove clean build/SharedPrecompiledHeaders/Prefix-einrycqxouvapmcttqbientroddb/Prefix.pch.pch builtin-rm -rf /Users/kristoferboman/.jenkins/workspace/UnityTest/Exports/iOS/BadMen-Jenkins/build/SharedPrecompiledHeaders/Prefix-einrycqxouvapmcttqbientroddb/Prefix.pch.pch Clean.Remove clean build/SharedPrecompiledHeaders/Prefix-fgwukhlppkdknhggcbmkagmrckgr/Prefix.pch.pch builtin-rm -rf /Users/kristoferboman/.jenkins/workspace/UnityTest/Exports/iOS/BadMen-Jenkins/build/SharedPrecompiledHeaders/Prefix-fgwukhlppkdknhggcbmkagmrckgr/Prefix.pch.pch Clean.Remove clean build/SharedPrecompiledHeaders/Prefix-epheuusweuvtcdfvgctfibdqscnf/Prefix.pch.pch builtin-rm -rf /Users/kristoferboman/.jenkins/workspace/UnityTest/Exports/iOS/BadMen-Jenkins/build/SharedPrecompiledHeaders/Prefix-epheuusweuvtcdfvgctfibdqscnf/Prefix.pch.pch Clean.Remove clean Build/AdHoc/thescore.app.dSYM builtin-rm -rf /Users/kristoferboman/.jenkins/workspace/UnityTest/Exports/iOS/BadMen-Jenkins/Build/AdHoc/thescore.app.dSYM Clean.Remove clean build/SharedPrecompiledHeaders/Prefix-armitbaxnvivvgcstzzvditcdqme/Prefix.pch.pch builtin-rm -rf /Users/kristoferboman/.jenkins/workspace/UnityTest/Exports/iOS/BadMen-Jenkins/build/SharedPrecompiledHeaders/Prefix-armitbaxnvivvgcstzzvditcdqme/Prefix.pch.pch Clean.Remove clean build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build builtin-rm -rf /Users/kristoferboman/.jenkins/workspace/UnityTest/Exports/iOS/BadMen-Jenkins/build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build ** CLEAN SUCCEEDED ** === BUILD TARGET Unity-iPhone OF PROJECT Unity-iPhone WITH CONFIGURATION Release === Check dependencies Signing for "Unity-iPhone" requires a development team. Select a development team in the project editor. Code signing is required for product type 'Application' in SDK 'iOS 10.0' ** BUILD FAILED ** The following build commands failed: Check dependencies (1 failure) Build step 'Xcode' marked build as failure Finished: FAILURE

        Attachments

          Activity

          Hide
          boinged Steven Shipton added a comment -

          I managed to work around this issue by supplying the team as a command line argument.

          In Advanced Xcode build options -> Custom xcodebuild arguments
          Add DEVELOPMENT_TEAM=XXX where XXX = your developer prefix code

          You can get your prefix code from the Apple developer center: https://developer.apple.com/account/ios/identifier/bundle then pick an app to expand and copy the value from Prefix

          Show
          boinged Steven Shipton added a comment - I managed to work around this issue by supplying the team as a command line argument. In Advanced Xcode build options -> Custom xcodebuild arguments Add DEVELOPMENT_TEAM=XXX where XXX = your developer prefix code You can get your prefix code from the Apple developer center: https://developer.apple.com/account/ios/identifier/bundle then pick an app to expand and copy the value from Prefix
          Hide
          archengineer Hulusi Önder added a comment -

          Hi Steven,

          You saved my day. Thank you. Your solution working properly.

          Show
          archengineer Hulusi Önder added a comment - Hi Steven, You saved my day. Thank you. Your solution working properly.
          Hide
          aheritier Arnaud Héritier added a comment -
          Show
          aheritier Arnaud Héritier added a comment - Should be fixed in 2.0.0 by  https://github.com/jenkinsci/xcode-plugin/pull/78

            People

            • Assignee:
              aheritier Arnaud Héritier
              Reporter:
              sozapbo Kristofer Boman
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: