私はSwift 2.2
からSwift 3
にアップグレードする場合、私がした最初のものはきれいだったし、私のcocoapods
を削除します。
pod deintegrate
pod clean
pod cache clean --all
rm Podfile
何らかの理由で、私は私がもともと持っていたポッドのすべて、GoogleInterchangeUtilities
ファイルに加えて、いくつかを再インストール他の人は、プロセス中に削除されました:
Analyzing dependencies
Removing GoogleInterchangeUtilities //**REMOVED**
Removing GoogleNetworkingUtilities //**REMOVED**
Removing GoogleParsingUtilities //**REMOVED**
Removing GoogleSymbolUtilities //**REMOVED**
Removing GoogleUtilities //**REMOVED**
Downloading dependencies
Installing Alamofire 3.5.1 (was 3.4.1)
Installing Firebase 3.15.0 (was 3.3.0)
Installing FirebaseAnalytics 3.7.0 (was 3.2.1)
Installing FirebaseAuth 3.1.1 (was 3.0.3)
Installing FirebaseCore (3.5.2)
Installing FirebaseCrash 1.1.6 (was 1.0.6)
Installing FirebaseDatabase 3.1.2 (was 3.0.2)
Installing FirebaseDynamicLinks 1.3.4 (was 1.1.0)
Installing FirebaseInstanceID 1.0.9 (was 1.0.7)
Installing FirebaseStorage 1.1.0 (was 1.0.2)
Installing GTMSessionFetcher (1.1.9)
Installing GoogleMaps 2.2.0 (was 1.13.2)
Using GooglePlacesAPI (1.0.6)
Installing GoogleToolboxForMac (2.1.1)
Installing ObjectMapper 1.5.0 (was 1.3.0)
Installing Protobuf (3.2.0)
Using SDWebImage (3.8.2)
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There are 10 dependencies from the Podfile and 17 total pods installed.
私は最終的にGoogleに行って、それのポッドに私を導いたGoogleInterchangeUtilities
で入力しますインストールページhere。エラーを取り除いたポッドを再インストールしましたが、削除された他のファイルのそれぞれが独自のld: framework not found...
Xcodeエラーを起こしました。
あなたのcocoapodsファイルをクリーニングして削除してすべてを再インストールすると、Google...Utilities
フレームワークが削除される可能性があります。特定の個々のポッドをポッドファイルに含めてから、pod install
を再度実行する必要があります。ここで
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'myProject' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for myProject
pod 'GoogleInterchangeUtilities', '~> 1.2'
pod 'GoogleNetworkingUtilities', '~> 1.2'
pod 'GoogleParsingUtilities', '~> 1.1'
pod 'GoogleSymbolUtilities', '~> 1.1'
pod 'GoogleUtilities', '~> 1.3'
//all my other pods...
そのcocoapodsがインストールされているページ:
GoogleInterchangeUtilities
GoogleNetworkingUtilities
GoogleParsingUtilities
ここ
は彼らと私のポッドファイルはすべて私の他のポッドに加えて、含まれています
GoogleSymbolUtilities
GoogleUtilities
[この](http://stackoverflow.com/questions/37306621/integration-google-analytics-in-swift-app)はあなたの問題を解決するのに役立ちますかどうかを確認してください。 –
@ f_qiありがとう私はそれを見ている –
@ f_qi私は、あなたの助けを借りて、問題を解決しました: –