error

A collection of 3 posts
Cannot find type 'anyClass' in scope @Xcode
xcode

Cannot find type 'anyClass' in scope @Xcode

Objective-CとSwift混在のプロジェクトで開発していたところ Swiftファイルを開いたらObjective-Cで定義されているクラスが cannot find type 'anyClass' in scope のようなワーニングが表示された。 ※ 画像では AppDelegate クラスは実際に定義されておりビルドも通るがエラーが表示される。 ビルドするとエラーが消えて、該当のSwiftファイルを閉じて開くとまたエラーが表示されるようなおかしな挙動。 対策 Xcodeのプロジェクトで Build Setting の項目 Precompile Bridging Header を NO に設定する。 Build Setting の検索窓に Precompile Bridging Header を入力すればすぐ見つかります。 参考 https://developer.apple.com/forums/thread/691672
1 min read
Unable to install "MyApp" 追記あり
xcode

Unable to install "MyApp" 追記あり

開発中のiOSアプリをXcodeから実機インストールしていたら Unable to install "MyApp" というエラーが発生するようになった。 MyAppはアプリ名 エラーのDetailsを確認すると This application’s application-identifier entitlement does not match that of the installed application. These values must match for an upgrade to be allowed. 私の環境では、このエラーは再現したりしなかったり。 Xcodeでキャッシュの削除(Product > Clean Build Folder | ⇧⌘Kまたは⇧⌥⌘K)で再現しなくなったりまた再現したり、XcodeやmacOSの再起動などしても変わらず。再現性がわかりませんでした。 思い返すとこの開発中のアプリはEnterpriseアカウントでアプリの配布をしているので、以前にEnterprise配布ビルドのアプリをインストールして以来ずっ
2 min read