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

Pod file problem in sample #2

Closed
stefanalund opened this issue Dec 30, 2014 · 8 comments
Closed

Pod file problem in sample #2

stefanalund opened this issue Dec 30, 2014 · 8 comments

Comments

@stefanalund
Copy link

Getting the following error when trying to run the sample app:

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.

I'm new to CocoaPods so hopefully this is a simple things.

Thanks

@ara4n
Copy link
Member

ara4n commented Dec 30, 2014

Hey Stefan - good to see you here; thanks for having a play with the iOS client! How precisely are you getting this error? The common problem here is that you should open and run the matrixConsole.xcworkspace file in Xcode that's generated by cocoapods, rather than the normal matrixConsole.xcodeproj.

On Mavericks on a (relatively) clean host, I just did:

$ sudo gem install cocoapods
Successfully installed cocoapods-0.35.0
Parsing documentation for cocoapods-0.35.0
1 gem installed

$ git clone git+ssh://git@github.com/matrix-org/matrix-ios-sdk
$ cd matrix-ios-sdk/samples/matrixConsole
$ pod install
Analyzing dependencies

CocoaPods 0.36.0.beta.1 is available.
To update use: gem install cocoapods --pre
[!] This is a test version we'd love you to try.

For more information see http://blog.cocoapods.org
and the CHANGELOG for this version http://git.io/BaH8pQ.

Fetching podspec for MatrixSDK from ../../MatrixSDK.podspec
Downloading dependencies
Installing AFNetworking (2.4.1)
Installing Mantle (1.5.1)
Using MatrixSDK (0.2.0)
Generating Pods project
Integrating client project

[!] From now on use matrixConsole.xcworkspace.

[!] [!] The Podfile does not contain any dependencies.

...and opened the matrixConsole.xcworkspace in Xcode, hit play, and it ran okay.

@ara4n
Copy link
Member

ara4n commented Dec 30, 2014

(by the way, as you've probably noticed the iOS & Android SDKs don't yet do any VoIP. We've got the iOS one using the Google library, but it's not committed yet - it'd be awesome to hook OpenWebRTC up to it...)

@stefanalund
Copy link
Author

You read my mind :-)

Thanks, I'll give it another go and report back.

@stefanalund
Copy link
Author

Sorry, getting this when running

$ pod install
Analyzing dependencies
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/pathname.rb:422:in `open': No such file or directory - /Users/stefan/.cocoapods/repos (Errno::ENOENT)
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/pathname.rb:422:in `foreach'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/pathname.rb:422:in `children'
    from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/sources_manager.rb:63:in `all'
    from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/user_interface/error_report.rb:130:in `repo_information'
    from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/user_interface/error_report.rb:34:in `report'
    from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/command.rb:58:in `report_error'
    from /Library/Ruby/Gems/2.0.0/gems/claide-0.7.0/lib/claide/command.rb:300:in `handle_exception'
    from /Library/Ruby/Gems/2.0.0/gems/claide-0.7.0/lib/claide/command.rb:274:in `rescue in run'
    from /Library/Ruby/Gems/2.0.0/gems/claide-0.7.0/lib/claide/command.rb:264:in `run'
    from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/command.rb:45:in `run'
    from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/bin/pod:43:in `<top (required)>'
    from /usr/bin/pod:23:in `load'
    from /usr/bin/pod:23:in `<main>'```

Any idea?

@ara4n
Copy link
Member

ara4n commented Dec 31, 2014

Right - this sounds like it's a cocoapods setup issue independent of matrix. Can you please try running "pod setup" - or the other suggestions from http://stackoverflow.com/questions/26990057/cocoapods-commands-fail-due-to-no-such-file-or-directory-dir-initialize-us

Which OSX is this?

@dbkr
Copy link
Member

dbkr commented Dec 31, 2014

Yep, looks like CocoaPods just hasn't been set up, so I think 'pod setup' is indeed what you want.

@stefanalund
Copy link
Author

Thanks for the support guys, it was the pod setup prior to pod install that was missing! Maybe it could be worth considering adding a few lines in the docs about how to get started with the sample app.

I hope you have a great New Years!

@ara4n
Copy link
Member

ara4n commented Dec 31, 2014

stefan: we've updated the README.rst to reflect this. thanks for the heads up, and happy new years to you too!

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