Rah*_*iya 5 ios swift swift-playground
我正在使用 Xcode 7.3。我已经将 Playground 和 Frameworks 放在同一个工作区中并构建了框架。我仍然收到此错误
Playground execution failed: error: Couldn't lookup symbols:
_RestofireVersionNumber
Run Code Online (Sandbox Code Playgroud)
如何解决这个问题?
如果您.podspec的库有一个,您可以使用cocoapods-playgrounds生成一个应该可以工作的 Playground。
$ gem install cocoapods-playgrounds\n$ pod playgrounds Restofire.podspec\nRun Code Online (Sandbox Code Playgroud)\n\n看起来该插件也暂时支持 Carthage 项目。
\n\n该插件在您的项目文件夹中创建一个新文件夹,其结构如下:
\n\nRestofirePlayground\n\xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 Podfile\n\xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 Podfile.lock\n\xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 Pods\n\xe2\x94\x82\xc2\xa0\xc2\xa0 \xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 Alamofire\n\xe2\x94\x82\xc2\xa0\xc2\xa0 \xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 Headers\n\xe2\x94\x82\xc2\xa0\xc2\xa0 \xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 Local\\ Podspecs\n\xe2\x94\x82\xc2\xa0\xc2\xa0 \xe2\x94\x82\xc2\xa0\xc2\xa0 \xe2\x94\x94\xe2\x94\x80\xe2\x94\x80 Restofire.podspec.json\n\xe2\x94\x82\xc2\xa0\xc2\xa0 \xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 Manifest.lock\n\xe2\x94\x82\xc2\xa0\xc2\xa0 \xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 Pods.xcodeproj\n\xe2\x94\x82\xc2\xa0\xc2\xa0 \xe2\x94\x94\xe2\x94\x80\xe2\x94\x80 Target\\ Support\\ Files\n\xe2\x94\x82\xc2\xa0\xc2\xa0 \xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 Alamofire\n\xe2\x94\x82\xc2\xa0\xc2\xa0 \xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 Pods-TidalPlayground\n\xe2\x94\x82\xc2\xa0\xc2\xa0 \xe2\x94\x94\xe2\x94\x80\xe2\x94\x80 Restofire\n\xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 Restofire.playground\n\xe2\x94\x9c\xe2\x94\x80\xe2\x94\x80 Restofire.xcodeproj\n\xe2\x94\x94\xe2\x94\x80\xe2\x94\x80 Restofire.xcworkspace\nRun Code Online (Sandbox Code Playgroud)\n\n生成 Playground 后剩下的就是构建RestofirePlayground方案,然后就可以开始了。