Error: Failed to install expo package with error: yarnpkg exited with non-zero code: 1 yarnpkg exited with non-zero code: 1 - sdk

I've been trying to upgrade the SDK for expo from version 40.0.1 to 44.0.0. However, i'm still getting this error
✖ Failed to install expo package with error: yarnpkg exited with non-zero code: 1
yarnpkg exited with non-zero code: 1
Error: yarnpkg exited with non-zero code: 1
at ChildProcess.completionListener (/usr/local/lib/node_modules/expo-cli/node_modules/#expo/spawn-async/src/spawnAsync.ts:65:13)
at Object.onceWrapper (node:events:476:26)
at ChildProcess.emit (node:events:369:20)
at maybeClose (node:internal/child_process:1067:16)
at Socket. (node:internal/child_process:453:11)
at Socket.emit (node:events:369:20)
at Pipe. (node:net:665:12)
...
at spawnAsync (/usr/local/lib/node_modules/expo-cli/node_modules/#expo/spawn-async/src/spawnAsync.ts:26:19)
at YarnPackageManager._runAsync (/usr/local/lib/node_modules/expo-cli/node_modules/#expo/package-manager/src/NodePackageManagers.ts:327:31)
at YarnPackageManager.addWithParametersAsync (/usr/local/lib/node_modules/expo-cli/node_modules/#expo/package-manager/src/NodePackageManagers.ts:272:16)
at YarnPackageManager.addAsync (/usr/local/lib/node_modules/expo-cli/node_modules/#expo/package-manager/src/NodePackageManagers.ts:276:5)
at upgradeAsync (/usr/local/lib/node_modules/expo-cli/src/commands/info/upgradeAsync.ts:496:7)
at actionAsync (/usr/local/lib/node_modules/expo-cli/src/commands/info/upgradeAsync.ts:42:3)
I've tried every suggestion from similar issues on this site, but I've had no help. Does anyone have any suggestions.

Have you tried this answer?
https://stackoverflow.com/a/72332470/5516544
Try deleting yarn.lock file & .expo folder and try running expo upgrade again.
It worked for me upgrading expo from 44 -> 45

Related

Getting error while trying to run ionic cordova build ios . Found multiple specifications for `FirebaseAuth (6.5.3)`:

Installing "cordova-plugin-firebase-authentication" for ios
Running command: pod install --verbose
[!] Found multiple specifications for FirebaseAuth (6.5.3):
/Users/vs/.cocoapods/repos/cocoapods/Specs/6/3/6/FirebaseAuth/6.5.3/FirebaseAuth.podspec.json
/Users/vs/.cocoapods/repos/trunk/Specs/6/3/6/FirebaseAuth/6.5.3/FirebaseAuth.podspec.json
[!] Found multiple specifications for FirebaseAuth (6.5.2):
/Users/vs/.cocoapods/repos/cocoapods/Specs/6/3/6/FirebaseAuth/6.5.2/FirebaseAuth.podspec.json
/Users/vs/.cocoapods/repos/trunk/Specs/6/3/6/FirebaseAuth/6.5.2/FirebaseAuth.podspec.json
[!] Found multiple specifications for FirebaseAuth (6.5.1):
/Users/vs/.cocoapods/repos/cocoapods/Specs/6/3/6/FirebaseAuth/6.5.1/FirebaseAuth.podspec.json
/Users/vs/.cocoapods/repos/trunk/Specs/6/3/6/FirebaseAuth/6.5.1/FirebaseAuth.podspec.json
Failed to install 'cordova-plugin-firebase-authentication': Error: pod: Command failed with exit code 1 Error output:
[!] Found multiple specifications for FirebaseAuth (6.5.3):
/Users/vs/.cocoapods/repos/cocoapods/Specs/6/3/6/FirebaseAuth/6.5.3/FirebaseAuth.podspec.json
/Users/vs/.cocoapods/repos/trunk/Specs/6/3/6/FirebaseAuth/6.5.3/FirebaseAuth.podspec.json
[!] Found multiple specifications for FirebaseAuth (6.5.2):
/Users/vs/.cocoapods/repos/cocoapods/Specs/6/3/6/FirebaseAuth/6.5.2/FirebaseAuth.podspec.json
/Users/vs/.cocoapods/repos/trunk/Specs/6/3/6/FirebaseAuth/6.5.2/FirebaseAuth.podspec.json
[!] Found multiple specifications for FirebaseAuth (6.5.1):
/Users/vs/.cocoapods/repos/cocoapods/Specs/6/3/6/FirebaseAuth/6.5.1/FirebaseAuth.podspec.json
/Users/vs/.cocoapods/repos/trunk/Specs/6/3/6/FirebaseAuth/6.5.1/FirebaseAuth.podspec.json
at ChildProcess.whenDone (/users/vs/documents/ionicprojects/tripper-app/node_modules/cordova-common/src/superspawn.js:135:23)
at ChildProcess.emit (events.js:315:20)
at maybeClose (internal/child_process.js:1021:16)
at Socket. (internal/child_process.js:443:11)
at Socket.emit (events.js:315:20)
at Pipe. (net.js:674:12)
[ERROR] An error occurred while running subprocess cordova.
cordova platform add ios exited with exit code 1.
pod repo remove master
This will delete all your repo what is not working or broken.

Task failed with exit 1 signal 0 {

i have updated my mac OS with High sierra and updated my xcode from 9.2 beta to 9.3 now i'm trying to run my project in xcode but i'm getting this error,
error: Task failed with exit 1 signal 0 {
/usr/bin/codesign '--force' '--sign' 'D07F0514ABB5168A2686CB2404531DC9F81CBB26' '--verbose' '/Users/hamza/Library/Developer/Xcode/DerivedData/ARPortalDemo-ablkjxbynnihakhdfdihocryaejd/Build/Products/Debug-iphoneos/ARPortalDemo.app/Frameworks/libswiftARKit.dylib'
}
I have searched about the solution many of them are saying to delete the derived data.I have done that but it isn't going. How can i resolve this? Why this error comes?

Cordova build failed for ios after installing pushwoosh notifications plugin

We have done ios app using cordova.We used pushwoosh plugin to send push notifications.Recently we have updated pushwoosh plugin from version 3.6.5 to 6.2.2 (https://github.com/Pushwoosh/pushwoosh-phonegap-plugin). After installing new version we are not able to build project.
cordova plugin add pushwoosh-cordova-plugin#6.2.2
After installing
cordova build ios
We are getting below error
The following build commands failed:
CpResource www/plugins/com.pushwoosh.plugins.pushwoosh/www/PushNotification.js build/emulator/ITCPapyra.app/PushNotification.js
(1 failure)
Error code 65 for command: xcodebuild with args: -xcconfig,/Users/apple/ITCPapyra/platforms/ios/cordova/build-debug.xcconfig,-project,ITCPapyra.xcodeproj,ARCHS=i386,-target,ITCPapyra,-configuration,Debug,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Users/apple/ITCPapyra/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/apple/ITCPapyra/platforms/ios/build/sharedpch
ERROR building one of the platforms: Error: /Users/apple/ITCPapyra/platforms/ios/cordova/build: Command failed with exit code 2
You may not have the required environment or OS to build this project
Error: /Users/apple/ITCPapyra/platforms/ios/cordova/build: Command failed with exit code 2
at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:139:23)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:827:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
We are using cordova version 5.2.0, node version 4.4.7 .Please help how to solve this issue and build our project success.
You may not have the required environment or OS to build this project
Which environment do you use?

Ionic emulate ios: Session could not be started

I'm trying to emulate my application on ios but nothig works for me. I've been searching for two days about the error and all workarounds i've found doesn't work for me. I'm running OSX Yosemite, Xcode 6.1.1, Cordova 4.2.0, Ionic 1.3.8, Ios-Sim 3.1.1. This is the ouput:
** BUILD SUCCEEDED **
2015-03-01 20:07:08.576 ios-sim[5970:3191481] stderrPath: /path/to/myapp/platforms/ios/cordova/console.log
2015-03-01 20:07:08.577 ios-sim[5970:3191481] stdoutPath: /path/to/myapp/platforms/ios/cordova/console.log
Session could not be started: Error Domain=DTiPhoneSimulatorErrorDomain Code=2 "Simulator session timed out." UserInfo=0x7ff3d370ff10 {NSLocalizedDescription=Simulator session timed out.}
Error: /path/to/myapp/platforms/ios/cordova/run: Command failed with exit code 1
at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23)
at ChildProcess.emit (events.js:98:17)
at maybeClose (child_process.js:766:16)
at Process.ChildProcess._handle.onexit (child_process.js:833:5)
I really don't know what to do. I already tried all worarounds I've found on internet: change files permissions, running as sudo, reset settings of emulator, open xcode before emulating my app, reinstalling cordova, etc, etc. No one works. Hope you can help me, guys! If you need further information, please let me know.
Thank you in advance!
I changed the permissions on directories it was using the whoami command
This seemed to work for me:
sudo chown -R $(whoami) ~/Documents/yourdirectory

Swift compiler error on Xcode 6

I have problems with Swift Compiler:
I created new project for iOs on latest Xcode 6 and tried to build - recieved 2 errors with ViewController.swift and AppDelegate.swift.
<unknown>:0: error: unable to execute command: Segmentation fault: 11
<unknown>:0: error: swift frontend command failed due to signal (use -v to see invocation)
<unknown>:0: error: unable to execute command: Bus error: 10
<unknown>:0: error: swift frontend command failed due to signal (use -v to see invocation)
I can post a full logs if if it is necessary.
What should i do? Thanks.
I have faced a similar issue while working with a swift project. I found this on Apple Support Website. It says that this type of error occurs when you tried to access an non-existent/inaccessible memory address. To solve the issue you can quit unused applications or even restart the mac which will probably help you.

Resources