Salesforce Mobile SDKのサンプル、forceiOSをベースにしたプロジェクトで、SmartStoreのpodをpod install
しようとしたところ、以下のようなエラーが出てしまいました。
[!] Unable to find a specification for `SQLCipher/fts (~> 4.5.0)` depended upon by `SmartStore/SmartStore`
You have either:
* out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
* mistyped the name or version.
* not added the source repo that hosts the Podspec to your Podfile.
Podfileは以下の通り
platform :ios, "15.2"
target 'CocoapodSpike' do
use_frameworks!
source 'https://github.com/forcedotcom/SalesforceMobileSDK-iOS-Specs.git'
pod 'SalesforceSDKCommon'
pod 'SalesforceSDKCore'
pod 'SmartStore' # 追加
pod 'MobileSync' # 追加
end
解決方法
Podfileに
source 'https://github.com/CocoaPods/Specs.git'
を追加し、再度
pod install
することで解決しました。
環境
Mac OSX 12.2.1
XCode 13.2.1
Salesforce MobileSDK 9.2.1