首页 > xcode playground里 导入自定义类 有什么好方法吗?

xcode playground里 导入自定义类 有什么好方法吗?

在工程 workspace下 可以import 使用cocoapods导入的第三方库 ,但是 无法引用到 自定义的类


playground 何必这么认真呢 本身就是一个学习代码的工具
非要引入
自己编译成framework
OS X Playground 加入到: /Applications/Xcode6-Beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks

iOS加入到: /Applications/Xcode6-Beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.0.sdk/System/Library/Frameworks/

就可以了
这里还有个方法
http://stackoverflow.com/questions/33144877/playground-import-no-such-module-foo
我没试过~

【热门文章】
【热门文章】