Error uploading ipa file: [Application Loader Error Output]: Exception caught. *** -[__NSArrayM insertObject:atIndex:]: object cannot be nil (-1010) [Application Loader Error Output]: The call to the altool completed with a non-zero exit status: 1. This indicates a failure.
エラー解消
解決方法
私の場合は間違ったバージョン番号が使用されたことが原因でした。
default_platform(:ios)
platform :ios do
desc "Releaseビルド"
lane :release_build do
increment_build_number(xcodeproj: "TEST.xcodeproj")
increment_version_number(bump_type: "patch")
# アクションの呼び出し
build_ios_app(
project: "TEST.xcodeproj",
scheme: "TEST",
configuration: "Release", # リリースビルドを指定
clean: true,
output_directory: "build",
output_name: "myapp_release.ipa"
)
end
desc "リリース"
lane :release do
increment_version_number(bump_type: "patch")
# ここのインクリメントが原因
build_app(scheme: "TEST")
upload_to_app_store(
username: ENV["FASTLANE_USER"],
ipa: "./build/myapp_debug.ipa",
skip_screenshots: true,
skip_metadata: true,
force: true
)
slack(
message: "Successfully uploaded a new App Store build",
slack_url: ENV["SLACK_WEBHOOK_URL"]
)
end
end
desc "リリース"
lane :release do
increment_version_number(bump_type: "patch")
上記のリリース時に実行されるincrement_version_numberが原因で
ビルドしたときバーション番号と、リリース時にアップロードされるバージョン番号が異なっているためタイトルのエラーとなっていました。
修正
desc "リリース"
lane :release do
build_app(scheme: "TEST")
upload_to_app_store(
username: ENV["FASTLANE_USER"],
ipa: "./build/myapp_debug.ipa",
skip_screenshots: true,
skip_metadata: true,
force: true,
)
slack(
message: "Successfully uploaded a new App Store build",
slack_url: ENV["SLACK_WEBHOOK_URL"]
)
end
increment_version_number削除して実行、AppStoreにアップロードできました。
参考