问题
I'm beginner in xcode and swift, So I'm try to add Haneke
framework to my project. I do these steps:
- Drag
Haneke.xcodeproj
to your project in the Project Navigator. - Select your project and then your app target. Open the Build Phases panel.
- Expand the Target Dependencies group, and add Haneke.framework.
- Click on the + button at the top left of the panel and select New Copy Files Phase. Set Destination to Frameworks, and add Haneke.framework.
import Haneke
whenever you want to useHaneke
.
But I get this error in improt Haneke
:
No such module 'Haneke'
Also I'm tried to Clean and Build again but not work for me! Is there a mistake from me?
Edit: More Info I used swift 2.0 and xcode 7.0.1 and development target is 8.0 Also I added some screenshots
回答1:
Finally I found another solution, At first I opened Haneke project in xcode and create a build then Drag & Drop new compiled file (Haneke.framework) from build folder to my own project and it's working now for me.
来源:https://stackoverflow.com/questions/33241713/swift-add-haneke-framework-to-xcode-7-0-1-not-work