1
1

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 5 years have passed since last update.

XcodeGenでつくったprojectをShareExtensionのSchemeで実行した際の 「Unable to install "xxxx Share Extension" 」エラーの対処法

1
Posted at

現象

$ xcodegen generate

を実行してprojectを作成。
その後、Schemeを Share ExtensionNotification Service Extension を選択して実行すると、以下のようなエラーが発生して実行されなかった。

image.png

Unable to install “hogehoge Share Extension”
Domain: com.apple.platform.iphoneos
Code: -1
Recovery Suggestion: “hogehoge Share Extension” cannot be installed on {device name}. hogehoge Share Extension.appex is not an application bundle

原因

Schemeの設定を開き、Run > Info タブを開く。

Executableの項目に、Extension自信の.appexが設定されていた。

image.png

対応

Executableに Ask on Launch を選択して実行する。
image.png

1
1
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
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?