得到错误 - 没有这样的模块' SquarePointOfSaleSDK'在进口声明中

时间:2018-03-21 20:51:53

标签: square square-connect

我忠实地遵循了cocoapods说明:Podfile是:

# Uncomment the next line to define a global platform for your project
# platform :ios '9.0'

target 'SquareTesting' do
  # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!

  # Pods for SquareTesting

  pod 'Firebase/Core'
  pod 'Firebase/Auth'
  pod 'Firestore', :podspec => 'https://storage.googleapis.com/firebase-preview-drop/ios/firestore/0.7.0/Firestore.podspec.json'
  pod 'SquarePointOfSaleSDK'

end

我也执行了pod updatepod install --repo-update,并且在短语中出现了使用SquarePointOfSaleSDK(3.3.1)的消息。

" SquarePointOfSaleSDK" pod显示在文件导航器中已安装的pod列表中。

任何建议都会非常感谢!

1 个答案:

答案 0 :(得分:0)

经过一整天的挣扎,我放弃并使用

#import <SquarePointOfSaleSDK.h>

而不是

@import SquarePointOfSaleSDK;

它有效,但我想知道解决此问题的最佳方法是什么。