0
0

【fastlaneエラー解消】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.

Last updated at Posted at 2024-08-19

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にアップロードできました。

スクリーンショット 2024-08-17 23.39.50.png

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0