React-Native “react-native run-ios” on a mac hackintosh - ios

I installed a fresh react-native app.I keep getting the below error when I ran "react-native run ios
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 132 0 132 0 0 199 0 --:--:-- --:--:-- --:--:-- 199
45 6847k 45 3121k 0 0 30498 0 0:03:49 0:01:43 0:02:06 23307
98 6847k 98 6724k 0 0 33096 0 0:03:31 0:03:27 0:00:04 16281
100 6847k 100 6847k 0 0 32939 0 0:03:32 0:03:32 --:--:-- 29880
curl: Saved to filename 'double-conversion-1.1.5.tar.gz'
Unpacking /Users/dev/.rncache/double-conversion-1.1.5.tar.gz...
Incorrect hash:
333dca13f4d16419d02d914c1b645477d40fd725 ?/Users/dev/.rncache/boost_1_63_0.tar.gz
Retrying...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 609 0 609 0 0 1170 0 --:--:-- --:--:-- --:--:-- 1168

Related

How to fix error with "pod 'Facebook-iOS-SDK' " command in Podfile?

I try to run "pod 'Facebook-iOS-SDK'" in my Podfile, but i get this error:
[!] Error installing FBSDKMarketingKit
[!] /usr/bin/curl -f -L -o /var/folders/bg/v2_zkcfs6m775r4l9wy541vc0000gn/T/d20211001-26597-ngh47r/file.zip https://origincache.facebook.com/developers/resources/?id=FacebookSDKs-iOS-4.38.0.zip --create-dirs --netrc-optional --retry 2 -A 'CocoaPods/1.10.1 cocoapods-downloader/1.4.0'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Transient problem: timeout Will retry in 1 seconds. 2 retries left.
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Transient problem: timeout Will retry in 2 seconds. 1 retries left.
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: origincache.facebook.com
I got this line from facebook events manager, and it says:
pod 'Facebook-iOS-SDK'
in documentation.
I tried to ping origincache.facebook.com, and didn't get response. I guess this server doesn't work now, but I'm not sure about that.
Has anybody faced this problem before?
If I didn't provide some information, feel free to ask for it, and I'll update question.
Similar issue (see below) - anyone crack this?
Installing FBSDKMarketingKit (4.38.0)
[!] Error installing FBSDKMarketingKit
[!] /usr/bin/curl -f -L -o /var/folders/13/f35cz8bs32x35w2kp1mkhckm0000gn/T/d20211213-5118-icg7sb/file.zip https://origincache.facebook.com/developers/resources/?id=FacebookSDKs-iOS-4.38.0.zip --create-dirs --netrc-optional --retry 2 -A 'CocoaPods/1.10.1 cocoapods-downloader/1.4.0'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Transient problem: timeout Will retry in 1 seconds. 2 retries left.
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Transient problem: timeout Will retry in 2 seconds. 1 retries left.
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: origincache.facebook.com

Curl command to pass script line to get crumb value and execute my groovy script

I have tried the below command to execute my groovy in jenkins script console to disable CSRF in v2.222.2.
CRUMB=$(curl -u "$userName" 'https://jenkins-testcrumb.origin-elr-core-nonprod.com/crumbIssuer/api/xml?xpath=concat(//crumbRequestField,":",//crumb)')
CRUMB_DISABLE=$(curl "$userName" "script=hudson.security.csrf.GlobalCrumbIssuerConfiguration.DISABLE_CSRF_PROTECTION = true" -H "$CRUMB" https://jenkins-testcrumb.origin-elr-core-nonprod.com/scriptText)
Error:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 462 100 462 0 0 1002 0 --:--:-- --:--:-- --:--:-- 1004
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: kvinod5; Unknown error
curl: (6) Could not resolve host: script=hudson.security.csrf.GlobalCrumbIssuerConfiguration.DISABLE_CSRF_PROTECTION = true; Unknown error
100 90 0 90 0 0 498 0 --:--:-- --:--:-- --:--:-- 498
Can someone help me how to get the soultion??
This will not work, use Api Tokens instead. The Jenkins upgrade documentation states:
Set the system property hudson.security.csrf.GlobalCrumbIssuerConfiguration.DISABLE_CSRF_PROTECTION to true on startup to disable CSRF protection as well as the configuration UI for it. This is an unsupported option and may be removed in the future.
Which suggests that it already has to be set on startup, and can't be modified afterwards.
Furthermore there are several issues with what you are trying to achieve:
The error says that it can't find the host: script=hudson.security.csrf.GlobalCrumbIssuerConfiguration.DISABLE_CSRF_PROTECTION = true;, which points to your second curl call which is incorrect and should be:
$(curl -u "$userName" --data-urlencode "script=hudson.security.csrf.GlobalCrumbIssuerConfiguration.DISABLE_CSRF_PROTECTION = true" -H "$CRUMB" https://jenkins-testcrumb.origin-elr-core-nonprod.com/scriptText)
This call will still fail with an invalid crumb, since Crumbs are no longer accepted for scripts. You should use an api token instead.
Furthermore to set a property, you need to call System.setProperty, so your script should be:
"script=System.setProperty('hudson.security.csrf.GlobalCrumbIssuerConfiguration.DISABLE_CSRF_PROTECTION', 'true'"
But as mentioned before, the property is checked at startup time, so changing it later will not disable the Crumb system.

Apportable won't install

I am trying to install the Apportable SDK. I copied the command from the "my accounts" page into terminal but instead of downloading this is what happens:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
Abdullah-Shafiques-Mac:~ Abd$
My internet connection works. I do not have any firewalls or proxy on.
There's a problem with the script, it should be fixed later today. Watch this thread for more info: http://forum.apportable.com/t/cannot-download-sdk/193

Why do I get permissions errors installing RVM?

I followed the RVM installation manual, and found that my system meets the minimum requirements for installation.
I included the user in /etc/sudoers.
Then I ran:
\curl -L https://get.rvm.io | bash-s stable - autolibs = homebrew - rails
but the installation process returned:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --: 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:100 184 100 184 0 0 156 0 0:00:01 0:00:01 --:--:-- 229
46 15779 46 7325 0 0 4433 0 0:00:03 0:00:01 0:100 15779 100 15779 0 0 9547 0 0:00:01 0:00:01 --:--:-- 8255k
Please read and follow further instructions.
Press ENTER to continue.
bash: line 584: /usr/local/rvm/RELEASE: Permission denied`
What is it I'm doing wrong? I also read other comments on this forum, that said it is correct to install RVM from the console as a user, not root, so any help will be greatly appreciated.
It seems you do not run the command as root.
Try sudo curl -L https://get.rvm.io | bash-s stable - autolibs = homebrew - rails.
EDIT:
Ok, i just see this post.
This issue can be due to oldest rvm installation and to solve it, you need to clean oldest installation.
To do that: sudo rm -rf /etc/rvmrc /etc/profile.d/rvm.sh /usr/local/rvm
Then, rerun your install command line.
Hope it will work.

RVM on ubuntu12.04 vps

~# curl -L get.rvm.io | bash -s stable
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 185 100 185 0 0 11 0 0:00:16 0:00:15 0:00:01 1057
100 9979 100 9979 0 0 317 0 0:00:31 0:00:31 --:--:-- 20235
Downloading RVM from wayneeseguin branch stable
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 125 100 125 0 0 8 0 0:00:15 0:00:15 --:--:-- 384
100 125 100 125 0 0 1 0 0:02:05 0:01:33 0:00:32 0curl: (7) couldn't connect to host
Could not download 'https://github.com/wayneeseguin/rvm/tarball/stable'.
curl returned status '7'.
I think your answer is here:
https://github.com/wayneeseguin/rvm/issues/804

Resources