0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【fastlane】app_store_connect_api_keyでの実行でinvalid curve nameエラーが出る

Posted at

困ったこと

fastlaneでregister_devicesを実行しようとしたところ
app_store_connect_api_keyの指定でinvalid curve nameのエラーが出た。

platform :ios do
  desc "add_device"
  lane :add_device do
    app_store_connect_api_key(
      key_id: ENV["ASC_KEY_ID"],
      issuer_id: ENV["ASC_ISSUER_ID"],
      key_content: ENV["ASC_KEY_CONTENT"],
      in_house: false
    )
    register_devices(devices: {ENV["DEVICE_NAME"] => ENV["DEVICE_UDID"]})
  end
end

解決した方法

原因はBitriseSecretsに保存したAppStoreConnectAPIKey_Content

-----BEGIN PRIVATE KEY-----
-----END PRIVATE KEY-----

が含まれていなかったことでした。

修正して実行したら無事デバイス登録できました👏

invalid curve nameのエラーだけでは原因を特定はできないと思いますが、解決方法の一つとして参考になればと思います。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?