Swift import got error "Could not build objective-C module 'Twitter'" while including a framework

1.1k Views Asked by At

I was taking the iTunesU course 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.

navigator

Does any one have some clue for this? Xcode version 8.1 and Swift 3.0

Thank you.

1

There are 1 best solutions below

0
Chen Jianqun On

You need to convert the code to swfit 3 and rebuild the Twitter framework in
the same workspace.

The answer here described how to convert the code. Smashtag (Stanford CS193p Twitter client) not loading on iPhone