2016-04-22 2 views
3

なぜuse_legacy_build_apiを追加する必要がありますか:ジム構築プロジェクトを使用する場合はtrueですか?なぜuse_legacy_build_apiを追加する必要がありますか:ジム構築プロジェクトを使用する場合はtrueですか?

私は新しいProjct(OCまたはSWIFTが同じである)を構築、

をXcodeの7.3、ジム1.6.2を使用し、以下

はエラー出力です:

2016-04-22 18:45:46.071 xcodebuild[135:10371572] [MT] PluginLoading: Required plug-in compatibility UUID F41BD31E-2683-44B8-AE7F-5F09E919790E for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/BBUFullIssueNavigator.xcplugin' not present in DVTPlugInCompatibilityUUIDs 
2016-04-22 18:45:46.246 xcodebuild[135:10371572] ### Failed to load Addressbook class CNContactNameFormatter 
2016-04-22 18:45:46.300 xcodebuild[135:10371572] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/4w/fpkx9n7s3gnbcxfym8mqr18m0000gn/T/GymDemo_2016-04-22_18-45-46.299.xcdistributionlogs'. 
2016-04-22 18:45:46.585 xcodebuild[135:10371572] [MT] IDEDistribution: Step failed: <IDEDistributionSigningAssetsStep: 0x7ff847a3e450>: Error Domain=IDEDistributionErrorDomain Code=1 "(null)" 
error: exportArchive: The operation couldn’t be completed. (IDEDistributionErrorDomain error 1.) 

Error Domain=IDEDistributionErrorDomain Code=1 "(null)" 

** EXPORT FAILED ** 
[18:45:46]: Exit status: 70 

[!] Error packaging up the application 

答えて

0

私はドン」なぜエラーがあるのか​​はわかりませんが、私はfastlane initを使用しています。私はfastlaneを変更します。

desc "Deploy a new version to the App Store" 
    lane :appstore do 
    # match(type: "appstore") 
    # snapshot 
    #sigh 
    gym(
     scheme: "myscheme_iOS", 
     export_method:"app-store", 
     output_directory:"./fastlane", 
     output_name:"myipa_20160607030055", 
     codesigning_identity:"iPhone Distribution: Jack Zhou (9R46C82WH7)" 
    ) # Build your app - more options available 
    #deliver(force: true) 
    # frameit 
    end 
0

フラグuse_legacy_build_apiはあなたが前にXcodeの6かで実行している場合にのみ使用する必要があります。これは私のfastfileです。 GithubFelix Krause自身で説明したように

use_legacy_build_apiは何ですか?
これは、公式にサポートされていないXcode 6ビルドAPIを使用しています。

何が起こったことは、新しいプロセスに適応し、古い1 fastlaneで動作することができるようにするために、この新しいフラグを導入しましたので、Xcodeの6と7の間にいくつかの変更は、ビルド/包装工程に行われたということでした基本的にどのコマンドを使用するかを通知します。

Xcodeの7

あなたはあなたがあなたのアプリケーションをエクスポートする方法を指定する必要がXcodeの7を使用しているので、それはあなたがXcodeの自分自身を使用しているときにする必要があり、同じ選択肢です。 Exporting archive using Xcode

また、アップルのドキュメントExporting Your App

ジム

上のエクスポート方法についての詳細を読むことができます

gym(export_method:"app-store|ad-hoc|package|enterprise|development|developer-id")

あなたはfastlane actions documentation

  • use_legacy_build_apiにジムとそのパラメータについての詳細を読むことができます:Fastlaneを使用して、上記で説明したように

    だから、あなたはそれに応じてexport_methodフィールドを指定する必要があります[非推奨します!]このオプションはAppleによって廃止されましたのでもう使用しないでください - このオプションはもうAppleの廃止予定であるため、もう使わないでください

  • export_method:アーカイブをエクスポートする方法。有効な値は、app-store、ad-hoc、パッケージ、エンタープライズ、開発、開発者ID
関連する問題