Hightower98
Hightower98

Reputation: 245

Cocoapods frameworks not installing properly

I can't seem to understand what is going on with my project and cocoapods, Xcode cannot find the frameworks except Firebase which is why I am confused. I'm getting the error Project ' file not found. Xcode also gives me the error, In file included from <built-in>:342: I have tried to clean and build, emptying Xcode's cache and reinstalling Xcode. Can anyone please explain this thanks. Here's my podfile:

# Uncomment this line to define a global platform for your project
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'

target 'Soar_iPad' do
# Comment this line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!

# Pods for Soar_iPad
pod 'Firebase'
pod 'Firebase/Auth'
pod 'ExpandingMenu', '~> 0.1'
pod 'SwiftyJSON'
end

enter image description here

Upvotes: 3

Views: 2147

Answers (4)

Jay
Jay

Reputation: 31

It seems that you cocoapods is the latest version. Try to install cocoapods that lower than 1.0.

config the podfile and run pod install.

Upvotes: 0

Hightower98
Hightower98

Reputation: 245

I figured out what was wrong and why Xcode could not find the pod files. It was because my directory had double quotation marks in it, for example I had /username/Desktop/Project "MyApp"/Project and Xcode could not find my pod files. But for some reason I found that using single quotes worked so for example /username/Desktop/Project 'MyApp'/Project. It's weird but glad a solution was found. Thanks to everyone that helped!

Upvotes: 2

Hoang Tran
Hoang Tran

Reputation: 306

Can you try this:

  1. pod deintegrate
  2. pod install

If it doesn't work, create a new project and add the same Podfile (just change the target name). Run pod install.

  • If it compiles fine, then your project must have been misconfigured somehow. You may want to migrate your project into that newly created one. (copy all files and add project references)
  • If it does not compile, I think there is something wrong with your system.

Please try those steps and let me know if it works.

Upvotes: 0

tommybananas
tommybananas

Reputation: 5736

  1. Delete workspace (.xcworkspace)
  2. Delete Podfile.lock and Pods/ directory
  3. Make sure your project builds
  4. Upgrade cocoapods gem install cocoapods (optional)
  5. Close project and run pod install

Upvotes: 1

Related Questions