Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XcodeをアップデートしたらR.generated.swiftでエラーが発生した #1

Open
KaitoMuraoka opened this issue Apr 5, 2023 · 3 comments

Comments

@KaitoMuraoka
Copy link
Owner

背景

Xcodeを14.3にアプデしたら

Command SwiftCompile failed with a nonzero exit code

というエラーが発生し、R.enerated.swiftから、

Compiled module was created by a different version of the compiler; rebuild 'Rswift' and try again: /Users/userName/Library/Developer/Xcode/DerivedData/ProjectName-dylfaufmarkigrcuhezrkracmphb/Build/Products/Debug-iphonesimulator/Rswift.framework/Modules/Rswift.swiftmodule/arm64-apple-ios-simulator.swiftmodule

というエラーが発生した

開発環境

  • Xcode 14.3 (14E222b)
  • ライブラリ管理ツール:Carthage
@KaitoMuraoka
Copy link
Owner Author

KaitoMuraoka commented Apr 5, 2023

やったこと

Carthageが原因と考え、Carthageのアプデ&ライブラリの導入を試みる

とりま、carthage update --use-xcframeworksを試す→ビルドに失敗。タスクコード65で失敗。

これは通常、プロジェクト自体のコンパイルに失敗したことを示しています。詳しくはxcodebuildのログを確認してください: /var/folders/dl/ygyqr4bd5y92j4b_3w42_21m0000gn/T/carthage-xcodebuild.6nxKj8.log

この原因は「コマンドラインツールに指されるXcodeのバージョンが正しくないことが原因」のようである。

@KaitoMuraoka
Copy link
Owner Author

KaitoMuraoka commented Apr 5, 2023

調べたところ、GitHubにIssueがあった。4日前(4月5日現在)に建てられたばかりなので、今後に期待

@KaitoMuraoka
Copy link
Owner Author

やべ、やらかしたわ。スマン

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant