(作業ログ)carthageを使ったちょっと古めのプロジェクトをビルドしてみる
一部伏せ字にしてます。
CocoaPodsでもいいと思いますが、carthageの方がちょっと速いということで頑張って使ってみることに。
早く、SwiftPM一択の世界になってほしい。
carthageをmacportsでインストール
SwifteriOSだけNo such module 'SwifteriOS'
になる
carthage update --use-xcframeworks
xcodebuild: error: Failed to build workspace KeychainAccess with scheme KeychainAccess. Reason: The run destination Any watchOS Device is not valid for Archiving the scheme 'KeychainAccess'. Recovery suggestion: watchOS 9.1 is not installed. To use with Xcode, first download and install the platform
carthage update --use-xcframeworks --platform iOS
でもダメ
cannot be opened because it is missing its project.pbxproj file.
そもそも、carthage.shじゃないとダメなのか。面倒。
※この後気づきますが、carthage.shは、現在不要になっています。
CocoaPodsを使用するように変更
[!] CocoaPods did not set the base configuration of your project because your project already has a custom config set. In order for CocoaPods integration to work at all, please either set the base configurations of the target `XXX` to `Target Support Files/Pods-XXX/Pods-XXX.debug.xcconfig` or include the `Target Support Files/Pods-XXX/Pods-XXX.debug.xcconfig` in your build configuration (`XXX/Configurations/Includes/Config.debug.xcconfig`). [!] CocoaPods did not set the base configuration of your project because your project already has a custom config set. In order for CocoaPods integration to work at all, please either set the base configurations of the target `XXX` to `Target Support Files/Pods-XXX/Pods-XXX.adhoc.xcconfig` or include the `Target Support Files/Pods-XXX/Pods-XXX.adhoc.xcconfig` in your build configuration (`XXX/Configurations/Includes/Config.adhoc.xcconfig`). [!] CocoaPods did not set the base configuration of your project because your project already has a custom config set. In order for CocoaPods integration to work at all, please either set the base configurations of the target `XXX` to `Target Support Files/Pods-XXX/Pods-XXX.release.xcconfig` or include the `Target Support Files/Pods-XXX/Pods-XXX.release.xcconfig` in your build configuration (`XXX/Configurations/Includes/Config.release.xcconfig`). [!] The `XXX [Adhoc]` target overrides the `OTHER_SWIFT_FLAGS` build setting defined in `Pods/Target Support Files/Pods-XXX/Pods-XXX.adhoc.xcconfig'. This can lead to problems with the CocoaPods installation - Use the `$(inherited)` flag, or - Remove the build settings from the target. [!] Your project does not explicitly specify the CocoaPods master specs repo. Since CDN is now used as the default, you may safely remove it from your repos directory via `pod repo remove master`. To suppress this warning please add `warn_for_unused_master_specs_repo => false` to your Podfile.
ここでうげっとなる。
carthage update --use-xcframeworks --platform iOS
これがファイナルアンサーか?
Writing error result bundle to /var/folders/yg/sdmzgphn5pb9vlh_8ny1z59m0000gn/T/ResultBundle_2022-13-12_14-39-0002.xcresult xcodebuild: error: Unable to read project 'NukeDemo.xcodeproj' from folder '/Users/t-watanabe/work/XXX/XXX/Carthage/Checkouts/Nuke/Demo'. Reason: Project /Users/t-watanabe/work/XXX/XXX/Carthage/Checkouts/Nuke/Demo/NukeDemo.xcodeproj cannot be opened because it is missing its project.pbxproj file.
rm -rf Carthage
今度はうまく行ったようす
Frameworks and Libraries
がどこにあるかわからない
ちゃんとターゲットを選択しないとダメなやつだ
"Embed & Sign"にチェックを入れる
ios - Cannot import Firebase in Swift app - Stack Overflow
import Firebase
じゃなくなったのか
Type of expression is ambiguous without more context
Nukeのバージョンをあげすぎたので書き方が変わりすぎたので、一旦戻す。11系から9系に
framework not found firebaseCoreDiagnostics
が出た。該当のフレームワークが赤字になってたので削除した。
一緒に、赤字になってるのは全て削除
Building for iOS Simulator, but linking in dylib built for iOS, file '/Users/t-watanabe/work/XXX/XXX/GoogleCastSDK-ios-4.5.0_dynamic/GoogleCast.framework/GoogleCast' for architecture arm64
いつものやつだ、
https://qiita.com/littleossa/items/ff75b19e0ac6713941f8
/usr/local/bin/carthage: No such file or directory Command PhaseScriptExecution
https://github.com/Carthage/Carthage/issues/3110
シンボリックリンク貼るのか。
which carthage /opt/local/bin/carthage sudo ln -s /opt/local/bin/carthage /usr/local/bin/carthage
Showing Recent Issues Failed to read file or folder at /Users/t-watanabe/work/XXX/XXX/Carthage/Build/iOS/SVProgressHUD.framework: Error Domain=NSCocoaErrorDomain Code=259 "Cannot retrive binary file from bundle at file:///Users/t-watanabe/work/XXX/XXX/Carthage/Build/iOS/SVProgressHUD.framework/" UserInfo={NSLocalizedDescription=Cannot retrive binary file from bundle at file:///Users/t-watanabe/work/XXX/XXX/Carthage/Build/iOS/SVProgressHUD.framework/, NSLocalizedRecoverySuggestion=Does the bundle contain an Info.plist?}
Showing Recent Issues Failed to read file or folder at /Users/t-watanabe/work/XXX/XXX/Carthage/Build/iOS/SVProgressHUD.framework: Error Domain=NSCocoaErrorDomain Code=259 "Cannot retrive binary file from bundle at file:///Users/t-watanabe/work/XXX/XXX/Carthage/Build/iOS/SVProgressHUD.framework/" UserInfo={NSLocalizedDescription=Cannot retrive binary file from bundle at file:///Users/t-watanabe/work/XXX/XXX/Carthage/Build/iOS/SVProgressHUD.framework/, NSLocalizedRecoverySuggestion=Does the bundle contain an Info.plist?}
carthage bootstrap --use-xcframeworks --platform iOS
違うか。
Build Phasesからcarthageを葬ってみた。起動するようになった