Swift中的cocoapods和Xcode 7.1.1.
我正在关注开发人员yahoo网站上的这个文档
https://developer.yahoo.com/flurry/docs/publisher/code/ios/#tab=0
这些说明似乎对我不起作用.首先,我在AppDelegate.swift中收到此错误:
Use of unresolved identifier ‘Flurry’
然后我在Flurry Github存储库中发现了一个已关闭的问题
https://github.com/flurry/Flurry-iOS-SDK/issues/3
import Flurry_iOS_SDK
但现在FlurryAdInterstitial也有同样的错误
Use of unresolved identifier ‘FlurryAdInterstitial’
我无法使用导入Flurry_iOS_SDK删除此链接错误.如果我导入Flurry_iOS_SDK,我收到此链接错误:
Undefined symbols for architecture arm64:
“_OBJC_CLASS_$_FlurryAdInterstitial”,referenced from:
type Metadata accessor for __ObjC.FlurryAdInterstitial in ViewController.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command Failed with exit code 1 (use -v to see invocation)
我还在Github上制作了一个演示项目来重现这个链接错误.
https://github.com/rishi420/TestSwiftFlurryAd
只需下载此存储库并在Xcode 7.x中构建,您应该能够得到此错误.