繁体   English   中英

游乐场执行失败:错误:无法查找符号

[英]Playground execution failed: error: Couldn't lookup symbols

我正在使用Xcode 7.3。 我已经将Playground和Frameworks放在同一个工作区中并构建了框架。 我仍然收到此错误

Playground execution failed: error: Couldn't lookup symbols:  
_RestofireVersionNumber

游乐场执行失败:错误:无法查找符号

怎么解决这个?

如果你的库有.podspec ,你可以使用cocoapods-playgrounds生成一个应该有效的Playground。

$ gem install cocoapods-playgrounds
$ pod playgrounds Restofire.podspec

看起来该插件也对Carthage项目提供了初步支持。

该插件使用以下结构在项目文件夹中创建一个新文件夹:

RestofirePlayground
├── Podfile
├── Podfile.lock
├── Pods
│   ├── Alamofire
│   ├── Headers
│   ├── Local\ Podspecs
│   │   └── Restofire.podspec.json
│   ├── Manifest.lock
│   ├── Pods.xcodeproj
│   └── Target\ Support\ Files
│       ├── Alamofire
│       ├── Pods-TidalPlayground
│       └── Restofire
├── Restofire.playground
├── Restofire.xcodeproj
└── Restofire.xcworkspace

生成Playground之后剩下的就是构建RestofirePlayground方案然后你就可以了。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM