我无法将the iOS-chart project /库集成到自定义项目中。
以下是我要做的步骤:
dyld:未加载库:@ rpath / Charts.framework / Charts Referenced 从: /private/var/mobile/Containers/Bundle/Application/0C7EC6DC-94B6-4205-8E71-0F704B2A7523/ChartIn.app/ChartIn 原因:未找到图像
答案 0 :(得分:2)
我只能引用:
为了正确编译:
2015-09-17 19:09:04.351 Test[51471:7984717] view did load tim
如果你想为iOS 7编译:
Drag the Charts.xcodeproj to your project
Go to your target's settings, hit the "+" under the "Embedded Binaries" section, and select the Charts.framework
Temporary workaround: Xcode 6.3.1 has a bug, where you have to build your project once before actually writing the @import line. So hit "Build" now!
@import Charts
When using Swift in an ObjC project:
You need to import your Bridging Header. Usually it is "YourProject-Swift.h", so in ChartsDemo it's "ChartsDemo-Swift.h". Do not try to actually include "ChartsDemo-Swift.h" in your project :-)
Under "Build Options", mark "Embedded Content Contains Swift Code"