Я использую последнюю версию fastlane 2.141 и
--------------------------- | -------------------------------------------------------------- |
| OS | 10.15 |
| Ruby | 2.6.3 |
| Bundler? | false |
| Git | git version 2.22.0 |
| Installation Source | /usr/local/bin/fastlane |
| Host | Mac OS X 10.15 (19A603) |
| Ruby Lib Dir | /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib |
| OpenSSL Version | LibreSSL 2.8.3 |
| Is contained | false |
| Is homebrew | false |
| Is installed via Fabric.app | false |
| Xcode Path | /Applications/Xcode.app/Contents/Developer/ |
| Xcode Version | 11.3.1 |
Я запустил fastalene "fastlane build" и ожидаю получить локальный файл приложения. Но я получил ошибку.
+ xcodebuild -exportArchive -exportOptionsPlist /var/folders/3c/mlppx6h92875_71f3w39c8v00000gn/T/gym_config20200203-9409-1rhcgra.plist -archivePath '/Users/hq/Library/Developer/Xcode/Archives/2020-02-03/BLU 2020-02-03 17.00.39.xcarchive' -exportPath /var/folders/3c/mlppx6h92875_71f3w39c8v00000gn/T/gym_output20200203-9409-fu1vea
497 2020-02-03 17:02:27.381 xcodebuild[10097:747090] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/3c/mlppx6h92875_71f3w39c8v00000gn/T/BLU_2020-02-03_17-02-27.380.xcdistributionlogs'.
498 2020-02-03 17:02:27.488 xcodebuild[10097:747090] [MT] IDEDistributionMethodManager: -[IDEDistributionMethodManager orderedDistributionMethodsForTask:archive:]: Error = Error Domain=IDEDistributionMethodManagerErrorDomain Code=2 "Unknown Distribution Error" UserInfo={NSLocalizedDescription=Unknown Distribution Error}
499 error: exportArchive: exportOptionsPlist error for key 'method': expected one of {}, but found app-store
500 Error Domain=IDEFoundationErrorDomain Code=1 "exportOptionsPlist error for key 'method': expected one of {}, but found app-store" UserInfo={NSLocalizedDescription=exportOptionsPlist error for key 'method': expected one of {}, but found app-store}
Мой файл fastlane прост
desc "Build application"
lane :build do
install_provisioning_profile(path: ENV["PROVISIONING_PROFILE"])
import_certificate(certificate_path: ENV["CERT_PATH"],
certificate_password: ENV["CERT_PWD"],
keychain_name: ENV["KEYCHAIN_NAME"],
keychain_password: ENV["HQ_PWD"])
gym(
scheme: ENV["SCHEME"],
clean: true,
output_directory: "build",
export_options: {
method: 'app-store'
}
)
В подробных журналах fastlane я нахожу странное сообщение:
e' from project 'BLU')
cd /Users/zakabluk/Documents/git/githubBLU/mobile-ios/app/BLU
builtin-RegisterExecutionPolicyException /Users/zakabluk/Library/Developer/Xcode/DerivedData/BLU-gvvvkwpjdlklocherkkkepucneic/Build/Intermediates.noindex/ArchiveIntermediates/BLU/InstallationBuildProductsLocation/Applications/BLU.app
note: Execution policy exception registration failed and was skipped: Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted" (in target 'BLU' from project 'BLU')
возможно это помогите разобраться в моей проблеме.