Skip to content
This repository has been archived by the owner on Jul 22, 2020. It is now read-only.

Xcode project fails to build from within generated workspace #20

Open
jamiebullock opened this issue Sep 4, 2014 · 2 comments
Open

Comments

@jamiebullock
Copy link

Following the build instructions, I do make clean setup and this generates a VideoPlayerSample.xcworkspace

However building the VideoPlayerSample target results in the compile error:

/Users/.../VideoPlayerKit/VideoPlayerKitSampleProject/VideoPlayerSample/VideoPlayerSampleViewController.h:4:9: 'VideoPlayerKit.h' file not found

This would suggest to me that the workspace is not being setup correctly by the build script

@jamiebullock
Copy link
Author

The problem is that the VideoPlayerSample project doesn't by default use the Pods.xcconfig for build configuration.

I managed to work around this by dragging Pods.xcconfig from the Pods project to the VidePlayerSample project in the workspace and setting "Pods" as the build configuration in Project -> Info -> Configurations as described here

I'm not sure if this is a CocoaPods error (i.e. bundle is not doing as it should) or if the generated Pods.xcconfig should be saved with the project and committed to the repo...

@codaman
Copy link

codaman commented May 30, 2016

Build Settings -> Build Active Architecture Only -> Debug must be YES . it works on me

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants