6

I just downloaded the Parse sample project, installed LiveQueries pod and nothing else. When I try to build it, it pops the two errors below.. What's wrong?

enter image description here

Mtoklitz113
  • 3,828
  • 3
  • 21
  • 40
Sotiris Kaniras
  • 520
  • 1
  • 12
  • 30

4 Answers4

5

Go to Build Settings under "Target" and set "Allow Non-modular Includes in Framework Modules" to YES

AND

Select the BFCancellationToken.h file in the project navigator. In the target membership area on the right there side of xcode there will be a drop down menu next to the target. Select "public" there (default will be "project").

Mtoklitz113
  • 3,828
  • 3
  • 21
  • 40
0

If you have project in objective-c add use_frameworks! to your pod file at start

Pantelis Proios
  • 1,359
  • 1
  • 20
  • 32
0

I had exactly this issue and found it just resolved by using

gem install cocoapods --pre

Which give me cocoapods 1.1.0.beta.1.

I'm very happy!!

I also did a

rm -rf Pods TargetName.xcworkspace Podfile.lock after quitting xcode and then rerunning pod install

silverdagger
  • 1,124
  • 13
  • 37
  • I did that and now I'm facing the below errors: https://cloud.githubusercontent.com/assets/9467442/17254633/3c587a68-55be-11e6-8acd-7a7c2acbb384.png – Sotiris Kaniras Jul 29 '16 at 16:14
  • Please get the latest version of ParseLiveServer, I fixed it with pull request #50 You might need to add this to your podfile: `pod 'ParseLiveQuery', :git => 'https://github.com/ParsePlatform/ParseLiveQuery-iOS-OSX.git'` – silverdagger Aug 03 '16 at 23:57
0

I solved it removing Modules folder from the framework.

  • Browse to your framework location which is present in the App Project using finder

  • Go inside Test.framework folder (In the above case it will be 'Bolts.framework) & Delete Modules folder.

  • Clean and Re Build the app, it will solve the problem.

Vittal Pai
  • 3,317
  • 25
  • 36