fastlane: Error building the application: xcodebuild error SDK "iphoneos9.2" cannot be located.

New Issue Checklist

Issue Description

My goal is to setup a lane that simply builds the application and uploads it to ITC. So, I setup an “uploadbuildonly” lane in my Fastfile (see full contents below).

When I run Fastlane, I receive the errors indicated in the Output area (exit status 64, SDK “iphoneos9.2” cannot be located, FixCode.xcplugin not present in DVTPlugInCompatibilityUUIDs, etc.).

Any ideas as to what might be going wrong, and how to fix it?

Complete output when running fastlane, including the stack trace and command used
[13:20:52]: -------------------------------------------------
[13:20:52]: --- Step: Verifying required fastlane version ---
[13:20:52]: -------------------------------------------------
[13:20:52]: fastlane version valid
[13:20:52]: ------------------------------
[13:20:52]: --- Step: default_platform ---
[13:20:52]: ------------------------------
[13:20:52]: Driving the lane 'ios uploadbuildonly' 🚀
[13:20:52]: -------------------
[13:20:52]: --- Step: match ---
[13:20:52]: -------------------

+-----------------------+-------------------------------------------------+
|                         Summary for match 0.4.0                         |
+-----------------------+-------------------------------------------------+
| type                  | appstore                                        |
| git_url               | git@github.com:talespring/certificates.git      |
| app_identifier        | com.talespring.glensmith.littlemunch-newfriends |
| username              | MyUsername                     |
| keychain_name         | login.keychain                                  |
| readonly              | false                                           |
| team_id               | YNAERBDEVX                                      |
| team_name             | TaleSpring LLC                                  |
| verbose               | false                                           |
| force                 | false                                           |
| shallow_clone         | false                                           |
| force_for_new_devices | false                                           |
| skip_docs             | false                                           |
+-----------------------+-------------------------------------------------+

[13:20:52]: Cloning remote git repo...
[13:21:25]: 🔓  Successfully decrypted certificates repo
[13:21:25]: Verifying that the certificate and profile are still valid on the Dev Portal...
[13:21:28]: Installing certificate...
[13:21:29]: Installing provisioning profile...

+----------------------+---------------------------------------------------------------+
|                            Installed Provisioning Profile                            |
+----------------------+---------------------------------------------------------------+
| App Identifier       | com.talespring.glensmith.littlemunch-newfriends               |
| Type                 | appstore                                                      |
| UUID                 | 314e3445-1b1a-4f5b-aa9e-f8735ff0e408                          |
| Environment Variable | sigh_com.talespring.glensmith.littlemunch-newfriends_appstore |
+----------------------+---------------------------------------------------------------+

[13:21:30]: All required keys, certificates and provisioning profiles are installed 🙌
[13:21:30]: 🔒  Successfully encrypted certificates repo
[13:21:30]: Setting Provisioning Profile type to 'app-store'
[13:21:30]: -----------------
[13:21:30]: --- Step: gym ---
[13:21:30]: -----------------
[13:21:30]: xcrun xcodebuild -list -project './tsbook.xcodeproj'
2016-04-11 13:21:31.210 xcodebuild[86184:20523349] [MT] PluginLoading: Required plug-in compatibility UUID ACA8656B-FEA8-4B6D-8E4A-93F4C95C362C for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/FixCode.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2016-04-11 13:21:31.792 xcodebuild[86189:20523404] [MT] PluginLoading: Required plug-in compatibility UUID ACA8656B-FEA8-4B6D-8E4A-93F4C95C362C for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/FixCode.xcplugin' not present in DVTPlugInCompatibilityUUIDs

+----------------------+-----------------------------------------------------------------------+
|                                    Summary for gym 1.6.2                                     |
+----------------------+-----------------------------------------------------------------------+
| export_method        | app-store                                                             |
| scheme               | tsbook                                                                |
| sdk                  | iphoneos9.2                                                           |
| clean                | true                                                                  |
| output_directory     | /Users/tsdev/Documents/TaleSpring/RandD/TS-Auto-Publish/Output-TS-ipa |
| output_name          | TheAdventuresofLittleMunch-MunchMeetstheFarmAnimalsTS-1.10            |
| project              | ./tsbook.xcodeproj                                                    |
| destination          | generic/platform=iOS                                                  |
| silent               | false                                                                 |
| use_legacy_build_api | false                                                                 |
| buildlog_path        | ~/Library/Logs/gym                                                    |
+----------------------+-----------------------------------------------------------------------+

[13:21:32]: $ set -o pipefail && xcodebuild -scheme 'tsbook' -project './tsbook.xcodeproj' -sdk 'iphoneos9.2' -destination 'generic/platform=iOS' -archivePath '/Users/tsdev/Library/Developer/Xcode/Archives/2016-04-11/TheAdventuresofLittleMunch-MunchMeetstheFarmAnimalsTS-1.10 2016-04-11 13.21.32.xcarchive' clean archive | tee /Users/tsdev/Library/Logs/gym/tsbook-tsbook.log | xcpretty
[13:21:32]: ▸ 2016-04-11 13:21:32.737 xcodebuild[86203:20523469] [MT] PluginLoading: Required plug-in compatibility UUID ACA8656B-FEA8-4B6D-8E4A-93F4C95C362C for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/FixCode.xcplugin' not present in DVTPlugInCompatibilityUUIDs
[13:21:32]: ▸ xcodebuild: error: SDK "iphoneos9.2" cannot be located.
2016-04-11 13:21:32.737 xcodebuild[86203:20523469] [MT] PluginLoading: Required plug-in compatibility UUID ACA8656B-FEA8-4B6D-8E4A-93F4C95C362C for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/FixCode.xcplugin' not present in DVTPlugInCompatibilityUUIDs
xcodebuild: error: SDK "iphoneos9.2" cannot be located.
[13:21:32]: Exit status: 64
[13:21:32]: Variable Dump:
[13:21:32]: {:DEFAULT_PLATFORM=>:ios, :PLATFORM_NAME=>:ios, :LANE_NAME=>"ios uploadbuildonly", :SIGH_PROFILE_TYPE=>"app-store"}
[13:21:32]: Error building the application - see the log above

+------+-------------------------------------+-------------+
|                     fastlane summary                     |
+------+-------------------------------------+-------------+
| Step | Action                              | Time (in s) |
+------+-------------------------------------+-------------+
| 1    | Verifying required fastlane version | 0           |
| 2    | default_platform                    | 0           |
| 3    | match                               | 38          |
| 4    | gym                                 | 1           |
+------+-------------------------------------+-------------+

[13:21:32]: fastlane finished with errors

[!] Error building the application - see the log above

Configuration Files

Please copy the complete content of your Fastfile and any other configuration files you use below:

Fastfile:

  # Customise this file, documentation can be found here:
# https://github.com/fastlane/fastlane/tree/master/docs
# All available actions: https://github.com/fastlane/fastlane/blob/master/docs/Actions.md
# can also be listed using the `fastlane actions` command

# Change the syntax highlighting to Ruby
# All lines starting with a # are ignored when running `fastlane`

# By default, fastlane will send which actions are used
# No personal data is shared, more information on https://github.com/fastlane/enhancer
# Uncomment the following line to opt out
# opt_out_usage

# If you want to automatically update fastlane if a new version is available:
# update_fastlane

# This is the minimum version number required.
# Update this, if you use features of a newer version
fastlane_version "1.52.0"

default_platform :ios

platform :ios do
  before_all do
    # ENV["SLACK_URL"] = "https://hooks.slack.com/services/..."


  end

  desc "Runs all the tests"
  lane :test do
    scan
  end

  desc "Submit a new Beta Build to Apple TestFlight"
  desc "This will also make sure the profile is up to date"
  lane :beta do
    match(type: "appstore") # more information: https://codesigning.guide
    gym(scheme: "tsbook") # Build your app - more options available
    pilot

    # sh "your_script.sh"
    # You can also use other beta testing services here (run `fastlane actions`)
  end

  desc "Deploy a new version to the App Store"
  lane :appstore do
    #increment_build_number
    match(type: "appstore")
    #snapshot
    gym
    produce(
        username: 'david.pettit@talespring.com',
        app_identifier: 'com.talespring.glensmith.littlemunch-newfriends',
        app_name: 'Munch\'s New Friends',
        language: 'English',
        app_version: '1.10',
        sku: "26_781_Munch\'s New Friends"
    )
    deliver(
    submit_for_review: false,
    force: false
    )
    #frameit
  end


  desc "Deploy a new version of the BUILD ONLY (no metadata) to the App Store"
  lane :uploadbuildonly do
        match(type: "appstore")
        gym
        produce(
        username: 'MyUsername',
        app_identifier: 'com.talespring.glensmith.littlemunch-newfriends',
        app_name: 'Munch\'s New Friends',
        language: 'English',
        app_version: '1.10',
        sku: "26_781_Munch\'s New Friends"
        )
        deliver(
        submit_for_review: false,
        force: false
        )
  end


  desc "Install FixCode xcode plugin to disable Xcode 'Fix Issue' button"
  lane :xcode do
      install_xcode_plugin(
                           url: "https://github.com/fastlane/FixCode/releases/download/0.2.0/FixCode.xcplugin.zip"
                           )
  end

  desc "Create/retrieve certificates/provisioning profiles for development"
  lane :development do
      # Call match to retrieve development certificates/profiles.
      match(
            type: "development",
            force: true
      )
  end

  # You can define as many lanes as you want

  after_all do |lane|
    # This block is called, only if the executed lane was successful

    # slack(
    #   message: "Successfully deployed new App Update."
    # )
  end

  error do |lane, exception|
    # slack(
    #   message: exception.message,
    #   success: false
    # )
  end
end



# More information about multiple platforms in fastlane: https://github.com/fastlane/fastlane/blob/master/docs/Platforms.md
# All available actions: https://github.com/fastlane/fastlane/blob/master/docs/Actions.md

My Gymfile is as follows:

scheme “tsbook”

sdk “iphoneos9.2”

clean true

Where to store the .ipa file

output_directory “/Users/tsdev/Documents/TaleSpring/RandD/TS-Auto-Publish/Output-TS-ipa”

What to name the .ipa file

output_name “TheAdventuresofLittleMunch-MunchMeetstheFarmAnimalsTS-1.10”

Project included here to avoid fastlane error (previously fixed, but still included just in case)

project “./tsbook.xcodeproj”

My Matchfile is as follows:

git_url “git@github.com:talespring/certificates.git” # One .git repo per team

type “appstore” # The default type, can be: appstore, adhoc or development

app_identifier “com.talespring.glensmith.littlemunch-newfriends” # The bundle id of the app username “MyUsername” # The Developer Portal Apple ID


Environment

fastlane version (fastlane -v): fastlane 1.81.0 Do you use bundler, rbenv or ram? No.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 25 (8 by maintainers)

Most upvoted comments

Those are only warnings that the plugin isn’t being loaded because of the compatibility UUID, it is unrelated to your build failure. There’s a missing SDK message, that should be the actual error.