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

Cocoapods crash when installing realm #2243

Closed
DennisGoldfinger opened this issue Jul 19, 2015 · 13 comments · Fixed by #2244
Closed

Cocoapods crash when installing realm #2243

DennisGoldfinger opened this issue Jul 19, 2015 · 13 comments · Fixed by #2244

Comments

@DennisGoldfinger
Copy link

After adding the code shown in the docs to my podfile and running pod install, I get the following:

/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.38.0/lib/cocoapods/command.rb:130: warning: Insecure world writable dir /usr in PATH, mode 040777
Updating local specs repositories
Analyzing dependencies
Pre-downloading: `Realm` from `https://github.com/realm/realm-cocoa.git`, branch `swift-2.0`
[!] /bin/bash -c 
set -e
sh build.sh cocoapods-setup

core is not a symlink. Deleting...
Downloading dependency: core 0.91.2
mv: rename ./.git//Applications/GitHub.app/Contents/Resources/git/share/git-core/templates/description to ./.git/description: No such file or directory

If I had to guess, I would say that the issue is in the build script where it is trying to rename a file that does not exist (./.git//Applications/GitHub.app/Contents/Resources/git/share/git-core/templates/description).

I have been all over the internet looking for a solution and have tried everything in the following links with no success:

#1022
#1520
CocoaPods/CocoaPods#2598
#908
#2102

Realm version: v0.93.2
XCode version: 7.0 beta (7A120f)

@segiddins
Copy link
Contributor

Hm, that's very very strong that it seems to think there's a symlink from ./.git/description to /Applications/GitHub.app/Contents/Resources/git/share/git-core/templates/description, and I can't reproduce that locally...

@segiddins
Copy link
Contributor

What version of git do you have? Do you have any weird git setup on your local machine?

@DennisGoldfinger
Copy link
Author

Git version 2.1.3.36.g8e36a6d and honestly, it's possible. I've had to tweak things before when coming up on errors like this with no solution. Although I can't say for sure that I've tweaked git itself.

@DennisGoldfinger
Copy link
Author

Also, I don't think the issue is so much that there is a symlink there as it is that the script is trying to rename a file that doesn't exist. Let me specify:

The script calls:

mv ./.git//Applications/GitHub.app/Contents/Resources/git/share/git-core/templates/description ./.git/description

The first clause in the mv command is what is breaking. It calls

./.git//Applications/GitHub.app/Contents/Resources/git/share/git-core/templates/description

When it should (or could?) be calling

/Applications/GitHub.app/Contents/Resources/git/share/git-core/templates/description

I'm not sure where it's getting that first file path. If it were to call it with the file path I just wrote, it would get that the file exists and nothing would actually change (and the script would continue).

@segiddins
Copy link
Contributor

Right, but it's calling mv in the first place because find . -type l has returned a symlink. I can't see that symlink locally, nor can I imaging how anything related to GitHub for Mac has gotten into the repo, so I'm at a loss as to why this is happening for you (especially since I can't reproduce it myself)

@DennisGoldfinger
Copy link
Author

Yeah I have no idea either, let me know if I can help in any way. By the way, this is what find . -type l returns for me locally:

./.git/description
./.git/hooks/applypatch-msg.sample
./.git/hooks/commit-msg.sample
./.git/hooks/post-update.sample
./.git/hooks/pre-applypatch.sample
./.git/hooks/pre-commit.sample
./.git/hooks/pre-push.sample
./.git/hooks/pre-rebase.sample
./.git/hooks/prepare-commit-msg.sample
./.git/hooks/update.sample
./.git/info/exclude

@segiddins
Copy link
Contributor

That's ... really strange. And would certainly explain the issue your seeing. I suppose it makes no sense to muck around with stuff in the .git dir, so I'll exclude that from the find

@adad184
Copy link

adad184 commented Jul 20, 2015

same problem

@pkordal
Copy link

pkordal commented Jul 20, 2015

Since today we have also experiencing issues with swift-2.0 branch and cocoa pods. Once installed/updated with pods RealmSwift module is not being visible during build process.

@konradowy
Copy link

The same here. I'm not able to build project. On Friday worked perfect, since today after pod update (and also upgrading cocoa pods to ver 0.38.0) stopped working. The error shows: "No such module 'RealmSwift'".

@ohcrfpv
Copy link

ohcrfpv commented Jul 29, 2015

same problem today.

@jpsim
Copy link
Contributor

jpsim commented Jul 29, 2015

@fewspider please send us steps to reproduce and we'll reopen this issue if we missed something.

@ohcrfpv
Copy link

ohcrfpv commented Jul 29, 2015

@jpsim It was solved #2312 ,thanks again.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants