Rahul Katariya
Rahul Katariya

Reputation: 3628

Playground execution failed: error: Couldn't lookup symbols

I am using Xcode 7.3. I have already put Playground and Frameworks in same workspace and have built the framework. I am still getting this error

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

Playground execution failed: error: Couldn't lookup symbols

How to resolve this ?

Upvotes: 5

Views: 2005

Answers (1)

squarefrog
squarefrog

Reputation: 4822

If you have a .podspec for your library, you can use cocoapods-playgrounds to generate a Playground which should work.

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

It looks like the plugin has tentative support for Carthage projects too.

The plugin creates a new folder inside your project folder with the following structure:

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

All that remains after generating the Playground is to build the RestofirePlayground scheme then you're good to go.

Upvotes: 1

Related Questions