The gem might not be able to compile, to solve this you might need to symlink GCC.
If you used an pre release version of Xcode you might need to update the command line tools.
CocoaPods is not compatible with MacRuby.
Using the CocoaPods Project
If something doesn’t seem to work, first of all ensure that you are not completely overriding any options set from the
Pods.xcconfig file in your project’s build settings. To add values to options from your project’s build settings, prepend the value list with
If Xcode can’t find the headers of the dependencies:
- Check if the pod header files are correctly symlinked in
Pods/Headers and you are not overriding the
HEADER_SEARCH_PATHS (see #1).
- Make sure your project is using the
Pods.xcconfig. To check this select your project file, then select it in the second pane again and open the
Info section in the third pane. Under configurations you should select
Pods.xcconfig for each configurations requiring your installed pods.
- If Xcode still can’t find them, as a last resort you can prepend your imports, e.g.
If you're getting errors about unrecognised C compiler command line options, e.g.
cc1obj: error: unrecognised command line option "-Wno-sign-conversion":
- Make sure your project build settings are configured to use "Apple LLVM compiler" (clang)
- Are you setting the
CXX environment variable, e.g. in your
~/.profile? This may interfere with the Xcode build process. Remove the environment variable from your
If Xcode complains when linking, e.g.
Library not found for -lPods, it doesn't detect the implicit dependencies:
- Go to Product > Edit Scheme
- Click on Build
- Add the
Pods static library, and make sure it's at the top of the list
- Clean and build again
- If that doesn't work, verify that the source for the spec you are trying to include has been pulled from GitHub. Do this by looking in <Project Dir>/Pods/<Name of spec you are trying to include>. If it is empty (it should not be), verify that the ~/.cocoapods/master/<spec>/<spec>.podspec has the correct git hub url in it.
- If still doesn't work, check your Xcode build locations settings. Go to Preferences -> Locations -> Derived Data -> Advanced and set build location to "Relative to Workspace".
- If you tried to submit app to App Store, and found that "Product" > "Archive" produce nothing in "Organizer":
- In Xcode "Build Settings", find "Skip Install". Set the value for "Release" to "NO" on your application target. Build again and it should work.
Different Xcode versions can have various problems. Ask for help and tell us what version you're using.
Can I workaround ‘Duplicate Symbol’ errors with static libraries?
This usually occurs when you’re using a closed-source third-party library that includes a common dependency of your application. One brute-force workaround is to remove the dependency from the static library, as described here
However, in general, the vendor should really prefix any dependencies it includes, so you don’t need to deal with it. When this happens, please contact the vendor and ask them to fix it on their side and use the above method as a temporary workaround.
I'm getting permission errors while running pod commands
As of CocoaPods 0.32.0 we have removed the ability to run the pod commands as
root to prevent CocoaPods from getting into an inconsistent state when you mix
and match running as root.
If you have ran CocoaPods as root at one stage you may start getting permission
denied errors when performing certain operations. When you come across
permission errors you may need to delete old files which run as root such as
the cache data. You can do this with the following commands.