Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS CocoaPods Integration #2

Open
monove opened this issue May 12, 2016 · 3 comments
Open

iOS CocoaPods Integration #2

monove opened this issue May 12, 2016 · 3 comments

Comments

@monove
Copy link

monove commented May 12, 2016

I have installed CocoaPods in the platforms/ios folder using the following Pod file:

platform :ios, '8.0'

target 'MyProject' do
  use_frameworks!
  pod 'Analytics', '~> 3.0'
end

When I then attempt to do a cordova build ios I get:

Check dependencies

=== BUILD TARGET MyProject OF PROJECT MyProject WITH CONFIGURATION Debug ===

Check dependencies

PhaseScriptExecution Check\ Pods\ Manifest.lock build/MyProject.build/Debug-iphonesimulator/MyProject.build/Script-E5E6AE6D7B909D2BD710DAB4.sh
    cd /Applications/XAMPP/xamppfiles/htdocs/MyProject-client/platforms/ios
    /bin/sh -c /Applications/XAMPP/xamppfiles/htdocs/MyProject-client/platforms/ios/build/MyProject.build/Debug-iphonesimulator/MyProject.build/Script-E5E6AE6D7B909D2BD710DAB4.sh
diff: /../Podfile.lock: No such file or directory
diff: /Manifest.lock: No such file or directory
error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.

** BUILD FAILED **


The following build commands failed:
    PhaseScriptExecution Check\ Pods\ Manifest.lock build/MyProject.build/Debug-iphonesimulator/MyProject.build/Script-E5E6AE6D7B909D2BD710DAB4.sh
(1 failure)
Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Applications/XAMPP/xamppfiles/htdocs/MyProject-client/platforms/ios/cordova/build-debug.xcconfig,-project,MyProject.xcodeproj,ARCHS=i386,-target,MyProject,-configuration,Debug,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Applications/XAMPP/xamppfiles/htdocs/MyProject-client/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Applications/XAMPP/xamppfiles/htdocs/MyProject-client/platforms/ios/build/sharedpch

What am I doing wrong? Or better yet, what are the exact steps I should take. Up until now I have not used CocoaPods at all.

@aliatsis
Copy link
Owner

@monove hmm not sure. This is what my Podfile looks like:

pod 'Analytics/GoogleAnalytics'
pod 'Analytics/Mixpanel'

I'm not by any means an expert with CocoaPods.
Let me know if you get it working 😄

@monove
Copy link
Author

monove commented May 12, 2016

I guess I'm just looking for instructions on how to add the basic Segment library for iOS to make this plugin work. I've got it working smoothly on Android. I just have no experience installing CocoaPods.

@jeremyaurelius
Copy link

I've had the same problem. In the end I decided to use this plugin for installing CocoaPods
https://github.com/blakgeek/cordova-plugin-cocoapods-support

jeremyaurelius referenced this issue in jeremyaurelius/cordova-plugin-segment Feb 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants