1
我正在尝试将Linkedin SDK集成到我的Swift项目中。我正在使用this cocoapod,这是我得到的错误。尝试将Linkedin SDK集成到我的Swift项目时出错
使用未解决的标识符 'LinkedinSwiftHelper'
我podfile的:
use_frameworks!
目标“JobRewards”做 荚“LinkedinSwift”,“〜> 1.6.5”
末
这是我收到错误的行,我声明后,这一权利我的视图控制器的类声明:
我的桥接报:
#ifndef ObjectiveCHeader_h
#define ObjectiveCHeader_h
#import <LinkedinSwift/LSHeader.h> // this will use both for POD and import framework.
#endif /* ObjectiveCHeader_h */
我的info.plist源代码:
<key>NSAppTransportSecurity</key>
<dict>
<key>NSExceptionDomains</key>
<dict>
<key>linkedin.com</key>
<dict>
<key>NSIncludesSubdomains</key>
<true/>
<key>NSExceptionRequiresForwardSecrecy</key>
<false/>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
<true/>
</dict>
</dict>
</dict>
<key>LIAppId</key>
<string>4594413</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>li4594413</string>
</array>
</dict>
</array>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>linkedin</string>
<string>linkedin-sdk2</string>
<string>linkedin-sdk</string>
</array>
在构建设置/ Objective-C的桥接报这是当前路径:
/Users/myName/Desktop/PROJECTS/MyProject/MyProject/ObjectiveCHeader.h
在此先感谢您的帮助,我一直在为此挣扎2天。
这解决了它对我来说。非常感谢。 –
没问题。如果它是您使用它的唯一东西,您可能需要删除该桥接标头。 –