简体   繁体   English

包含框架时,Swift导入出现错误“无法构建目标C模块'Twitter'”

[英]Swift import got error “Could not build objective-C module 'Twitter'” while including a framework

I was taking the iTunesU course CS193P Lecture9. 我上了iTunesU课程CS193P Lecture9。

I got this error while trying to import the framework. 尝试导入框架时出现此错误

I've already turn on "Allow Non-modular Includes In Framework Modules" The "Twitter" framework was built successfully and already added in the "SmashTag"'s Linked Frameworks and Libraries. 我已经启用了“允许框架模块中包含非模块化包含”。“ Twitter”框架已成功构建,并且已添加到“ SmashTag”的链接框架和库中。

navigator 航海家

Does any one have some clue for this? 有人对此有一些线索吗? Xcode version 8.1 and Swift 3.0 Xcode版本8.1和Swift 3.0

Thank you. 谢谢。

You need to convert the code to swfit 3 and rebuild the Twitter framework in 您需要将代码转换为swfit 3,并在其中重建Twitter框架。
the same workspace. 相同的工作空间。

The answer here described how to convert the code. 此处的答案描述了如何转换代码。 Smashtag (Stanford CS193p Twitter client) not loading on iPhone 无法在iPhone上加载Smashtag(斯坦福CS193p Twitter客户端)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM