使用 fastlane/gym 导出未签名的 ipa

export unsigned ipa with fastlane/gym

我正在尝试使用 fastlane 导出 unsigned ipa。 到目前为止我的健身房配置:

  desc "Archive ipa"
  lane :archive
    gym(
      workspace: "MyApp.xcworkspace",
      scheme: "my_scheme",
      configuration: "Release",
      output_name: "my_app" ,
      output_directory: "$HOME/releases/",
      archive_path: "/tmp/builds/my_app",
      xcargs: "CODE_SIGN_IDENTITY= CODE_SIGNING_REQUIRED=NO",
      clean: true,
    )
  end

创建存档工作正常,但 exportArchive 命令失败:

+ xcodebuild -exportArchive -exportOptionsPlist /var/folders/0z/g96lg8p16m12xmlhsqhymqd40000gn/T/gym_config20160815-92249-18a1h2g.plist -archivePath /tmp/builds/my_app.xcarchive -exportPath /var/folders/0z/g96lg8p16m12xmlhsqhymqd40000gn/T/gym_output20160815-92249-11hxnye
2016-08-15 13:42:06.531 xcodebuild[92599:6056507] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/0z/g96lg8p16m12xmlhsqhymqd40000gn/T/appConfig_2016-08-15_13-42-06.529.xcdistributionlogs'.
2016-08-15 13:42:07.724 xcodebuild[92599:6056507] [MT] IDEDistribution: Step failed: <IDEDistributionSigningAssetsStep: 0x7fc7bc578e90>: Error Domain=IDEFoundationErrorDomain Code=1 "No 'teamID' specified and no team ID found in the archive" UserInfo={NSLocalizedDescription=No 'teamID' specified and no team ID found in the archive}
error: exportArchive: No 'teamID' specified and no team ID found in the archive

Error Domain=IDEFoundationErrorDomain Code=1 "No 'teamID' specified and no team ID found in the archive" UserInfo={NSLocalizedDescription=No 'teamID' specified and no team ID found in the archive}

** EXPORT FAILED **

非常感谢任何帮助。

据我所知,XCode 7 导出过程(支持应用瘦身和位代码)不支持未签名的 IPA。

如果您将 use_legacy_build_API: true 传递给健身房,它应该会按预期工作。