Realm framework version: ???
Realm Object Server version: ???
Xcode version: 12.0
iOS/OSX version: OS X 11.0 Beta BigSur
Dependency manager + version: 1.9.3
When running pod install getting the issue:
[!] Error installing RealmSwift
[!] Failed to download 'RealmSwift': [!] /usr/bin/git -C /var/folders/12/gkl91qgs1wz7731nbbvf3f9w0000gn/T/d20200925-2721-mas67c submodule update --init --recursive
Submodule path 'Realm/ObjectStore': checked out 'e29b5515df8b8adfe2454424b78878bb63879307'
Submodule 'Realm/ObjectStore' (https://github.com/realm/realm-object-store.git) registered for path 'Realm/ObjectStore'
Cloning into '/private/var/folders/12/gkl91qgs1wz7731nbbvf3f9w0000gn/T/d20200925-2721-mas67c/Realm/ObjectStore'...
Submodule 'external/catch' (https://github.com/catchorg/Catch2) registered for path 'Realm/ObjectStore/external/catch'
Cloning into '/private/var/folders/12/gkl91qgs1wz7731nbbvf3f9w0000gn/T/d20200925-2721-mas67c/Realm/ObjectStore/external/catch'...
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: the remote end hung up unexpectedly
fatal: clone of 'https://github.com/catchorg/Catch2' into submodule path '/private/var/folders/12/gkl91qgs1wz7731nbbvf3f9w0000gn/T/d20200925-2721-mas67c/Realm/ObjectStore/external/catch' failed
Failed to clone 'external/catch'. Retry scheduled
Cloning into '/private/var/folders/12/gkl91qgs1wz7731nbbvf3f9w0000gn/T/d20200925-2721-mas67c/Realm/ObjectStore/external/catch'...
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: the remote end hung up unexpectedly
fatal: clone of 'https://github.com/catchorg/Catch2' into submodule path '/private/var/folders/12/gkl91qgs1wz7731nbbvf3f9w0000gn/T/d20200925-2721-mas67c/Realm/ObjectStore/external/catch' failed
Failed to clone 'external/catch' a second time, aborting
Failed to recurse into submodule path 'Realm/ObjectStore'
Same error is raised when installing using Xcode 12 and SwiftPM
Same error when installing using Xcode 11.7 and SwiftPM.
Facing the same issue with Xcode 12 GM and SwiftPM
Same error with Xcode 12.0.1 (12A7300) and SwiftPM. Deleting the derived data folder and changing the global git http.postBuffer size did not fixed the problem.
This is a strange one. We had the same issue, and could reproduce the error both in Carthage and SwiftPM!
It looks to be an issue during the "git submodule update -v --init --recursive", were we get a "RPC failed; curl 18 transfer closed with outstanding read data remaining" error. This issue have been seen before with large repos. Not sure who to "blame" here but I do actually not think this is a bug in Realm!
The most common suggestion to solve this to do a shallow clone, which is not possible in these cases.
But another suggestion is to use SSH instead of HTTPS! So what we did to solve it (as a temporary fix) was to change all git commands from HTTPS to SSH by adding the following to the global git config!
git config --global url."[email protected]:".insteadOf https://github.com/
This will force git to use SSH instead of HTTPS for GitHub, and that resolved the issue for us.
Remember to remove this config again later, to avoid possible problems later. Do not see this as a permanent fix 馃槈
same error on pod 'Realm'.
Yesterday was OK. Only this problem started today
git config --global url."[email protected]:".insteadOf https://github.com/
Thanks @mir-dawn! I was able to install Realm using SwiftPM althought I had to tweak the command a bit to avoid breaking installation of other dependencies:
git config --global url."[email protected]:catchorg/Catch2".insteadOf https://github.com/catchorg/Catch2
git config --global url."[email protected]:".insteadOf https://github.com/
Thanks @mir-dawn! I was able to install Realm using SwiftPM althought I had to tweak the command a bit to avoid breaking installation of other dependencies:
git config --global url."[email protected]:catchorg/Catch2".insteadOf https://github.com/catchorg/Catch2
Hello! I tried this, but get errors:
[!] Error installing Realm
[!] /usr/bin/git -C /var/folders/6f/yw_vww5s7zl_s_kscnx25f6h0000gn/T/d20200925-55137-1pndacv submodule update --init --recursive
Submodule path 'Realm/ObjectStore': checked out '7ad03b857ddc0ef29779caeb93ad5a6d9cef44af'
Submodule 'Realm/ObjectStore' (https://github.com/realm/realm-object-store.git) registered for path 'Realm/ObjectStore'
Cloning into '/private/var/folders/6f/yw_vww5s7zl_s_kscnx25f6h0000gn/T/d20200925-55137-1pndacv/Realm/ObjectStore'...
Submodule 'external/catch' (https://github.com/catchorg/Catch2) registered for path 'Realm/ObjectStore/external/catch'
Cloning into '/private/var/folders/6f/yw_vww5s7zl_s_kscnx25f6h0000gn/T/d20200925-55137-1pndacv/Realm/ObjectStore/external/catch'...
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: clone of 'https://github.com/catchorg/Catch2' into submodule path '/private/var/folders/6f/yw_vww5s7zl_s_kscnx25f6h0000gn/T/d20200925-55137-1pndacv/Realm/ObjectStore/external/catch' failed
Failed to clone 'external/catch'. Retry scheduled
Cloning into '/private/var/folders/6f/yw_vww5s7zl_s_kscnx25f6h0000gn/T/d20200925-55137-1pndacv/Realm/ObjectStore/external/catch'...
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: clone of 'https://github.com/catchorg/Catch2' into submodule path '/private/var/folders/6f/yw_vww5s7zl_s_kscnx25f6h0000gn/T/d20200925-55137-1pndacv/Realm/ObjectStore/external/catch' failed
Failed to clone 'external/catch' a second time, aborting
Failed to recurse into submodule path 'Realm/ObjectStore'
@eofs Cool, this is maybe a better approach! I tested the other with Carthage and SwiftPM in the terminal, and there they worked. But I can see that they do not work in Xcode 12, But you approach do! :)
@MeGaPk looks like you are missing a SSH key.
@MeGaPk looks like you are missing a SSH key.
Hello! I tried this, but get errors:
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.You need to generate necessary keys and setup your GitHub account for SSH access. See following documentation how to set it up: https://docs.github.com/en/github/authenticating-to-github/connecting-to-github-with-ssh
thanks it works now
Thanks @mir-dawn! I was able to install Realm using SwiftPM althought I had to tweak the command a bit to avoid breaking installation of other dependencies:
git config --global url."[email protected]:catchorg/Catch2".insteadOf https://github.com/catchorg/Catch2
I'm getting this error now
```[!] /bin/bash -c
set -e
sh build.sh cocoapods-setup
core is not a symlink. Deleting...
Downloading dependency: sync 4.9.0 from https://static.realm.io/downloads/sync/realm-sync-cocoa-4.9.0.tar.xz
mv: rename core to sync-4.9.0/core: Directory not empty
Thanks @mir-dawn! I was able to install Realm using SwiftPM althought I had to tweak the command a bit to avoid breaking installation of other dependencies:
git config --global url."[email protected]:catchorg/Catch2".insteadOf https://github.com/catchorg/Catch2I'm getting this error now
set -e sh build.sh cocoapods-setup core is not a symlink. Deleting... Downloading dependency: sync 4.9.0 from https://static.realm.io/downloads/sync/realm-sync-cocoa-4.9.0.tar.xz mv: rename core to sync-4.9.0/core: Directory not empty
try rm -fr ~/.cocoapods maybe will help
After generating and adding ssh, works even without git config --global url."[email protected]:catchorg/Catch2".insteadOf https://github.com/catchorg/Catch2.
Big Sur + Xcode 12 + CocoaPods 1.9.3
Facing the same problem using xcode 12 + SPM with Realm v4.x.x (latest v4).
Not being able to use ssh (continuous integration over a server with not enough ssh rights), this still remains an issue.
I hope the Realm team can fix this quickly 馃
From the documentation:
If you鈥檙e using Xcode 12, add the following to your Podfile:
Copy to clipboardpost_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'arm64'
end
end
end
This is a temporary workaround for until CocoaPods 1.10 is released.
From the documentation:
If you鈥檙e using Xcode 12, add the following to your Podfile:
Copy to clipboardpost_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'arm64'
end
end
end
This is a temporary workaround for until CocoaPods 1.10 is released.
It doesn't solve the problem
@MeGaPk
Thanks for response, this helped me!
https://github.com/realm/realm-cocoa/issues/6285#issuecomment-538560001
I installed the previous version:
pod 'RealmSwift', '~> 5.4.0'
I installed the previous version:
pod 'RealmSwift', '~> 5.4.0'
i tried to install 4.3.0 but have same error
This is a strange one. We had the same issue, and could reproduce the error both in Carthage and SwiftPM!
It looks to be an issue during the "git submodule update -v --init --recursive", were we get a "RPC failed; curl 18 transfer closed with outstanding read data remaining" error. This issue have been seen before with large repos. Not sure who to "blame" here but I do actually not think this is a bug in Realm!
The most common suggestion to solve this to do a shallow clone, which is not possible in these cases.
But another suggestion is to use SSH instead of HTTPS! So what we did to solve it (as a temporary fix) was to change all git commands from HTTPS to SSH by adding the following to the global git config!
git config --global url."[email protected]:".insteadOf https://github.com/
This will force git to use SSH instead of HTTPS for GitHub, and that resolved the issue for us.
Remember to remove this config again later, to avoid possible problems later. Do not see this as a permanent fix 馃槈
How to remove this config ?
@MohammedBadr20s you can do it through this command
git config --global --unset url."[email protected]:".insteadOf https://github.com/
or you can try git config --global --edit to edit your global git config and delete it manually.
We do not have the power to fix github's server issues.
One user as provided a workaround as well.
Okay, so I was having the same issue with SPM. Adding an SSH key to my account for the computer I was working with ended up doing the trick. SPM is able to resolve Realm as a dependency now with the SSH key installed.
It's back 馃帀馃帀馃帀馃帀馃帀
I agree with @Kalzem. The issue looks to be resolved. I do not see any changes in the projects, so I still believe it was a GitHub issue. Anyone know if anything has changed?
Closing as this is Github related & also looks to be resolved.
I found another work around if you use the instructions at https://github.com/realm/realm-cocoa#building-realm. If you tell git to use protocol version 2 it doesn't fail when checking out the Catch2 submodule.
git -c protocol.version=2 submodule update --init --recursive
I'm not sure how to do the same thing with carthage (which had the same error according to https://github.com/realm/realm-cocoa/issues/6807) without updating that project so I opened https://github.com/Carthage/Carthage/pull/3062.
Apologies for the comment I left that was supposed to be on an internal debugging thread at github 馃檹 I've deleted my comment here and I apologize for any confusion.
Most helpful comment
Thanks @mir-dawn! I was able to install Realm using SwiftPM althought I had to tweak the command a bit to avoid breaking installation of other dependencies:
git config --global url."[email protected]:catchorg/Catch2".insteadOf https://github.com/catchorg/Catch2