Flutter can't execute FirebaseCrashlytics run script - ios

faced with issue when try to build Flutter application with Firebase Crashlytics and got this error.
/Users/andrew/folder/ios/Pods/FirebaseCrashlytics/run: line 2:
: command not found
/Users/andrew/folder/ios/Pods/FirebaseCrashlytics/run: line 38:
: command not found
/Users/andrew/folder/ios/Pods/FirebaseCrashlytics/run: line 41:
: command not found
/Users/andrew/folder/ios/Pods/FirebaseCrashlytics/run: line 77: syntax error: unexpected end of file
Command PhaseScriptExecution failed with a nonzero exit code
There is my settings.
Does anybody faced with same issue?
Previous version "Fabric" works fine.

Related

VSCode: Dart Project Issues/Command 'Dart: New Project' resulted in an error (Stagehand exited with code 127, No such file or directory

When I try to create a new Dart project on VSCode, I get the following error:
https://i.stack.imgur.com/dii5H.png
Does anyone know how to resolve this? Thanks!
[error message reads:
Command 'Dart: New Project' resulted in an error (Stagehand exited with code 127. /bin/sh: /Users/redacted-name/Development/flutter/bin/cache/dart-sdk/bin/pub: No such file or directory )

XCode13.4 run old flutter project failed to build iOS app

I just upgraded to Xcode 13.4 in macOS Monterey 12.4, running a flutter project got this error:
Unhandled exception:
ProcessException: No such file or directory
Command: /Users/taoli-blue/fvm/versions/2.10.3/bin/flutter assemble --no-version-check --output=/Users/taoli-blue/Library/Developer/Xcode/DerivedData/Runner-fjqqglukmistzcemtudzjrvxvsvk/Build/Products/Debug-dev-iphoneos/ -dTargetPlatform=ios -dTargetFile=/Users/taoli-blue/taoli/flutter_taoli_app/lib/main_dev.dart -dBuildMode=debug -dIosArchs=arm64 -dSdkRoot=/Applications/Xcode13.3/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.4.sdk -dSplitDebugInfo= -dTreeShakeIcons=false -dTrackWidgetCreation=true -dDartObfuscation= -dEnableBitcode= --ExtraGenSnapshotOptions= --DartDefines= --ExtraFrontEndOptions= -dCodesignIdentity=21E6A88880ED32FA5B3525F5134308364DAB1434 debug_ios_bundle_flutter_assets
_ProcessImpl._runAndWait (dart:io-patch/process_patch.dart:487:7)
_runNonInteractiveProcessSync (dart:io-patch/process_patch.dart:632:18)
Process.runSync (dart:io-patch/process_patch.dart:68:12)
Context.runSync (file:///Users/taoli-blue/fvm/versions/2.10.3/packages/flutter_tools/bin/xcode_backend.dart:92:42)
Context.buildApp (file:///Users/taoli-blue/fvm/versions/2.10.3/packages/flutter_tools/bin/xcode_backend.dart:448:34)
Context.run (file:///Users/taoli-blue/fvm/versions/2.10.3/packages/flutter_tools/bin/xcode_backend.dart:51:9)
main (file:///Users/taoli-blue/fvm/versions/2.10.3/packages/flutter_tools/bin/xcode_backend.dart:17:5)
delayEntrypointInvocation.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:295:32)
RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:192:12)
Command PhaseScriptExecution failed with a nonzero exit code
And I totally don't know how to resolve this error.
Any one could help me?

React Native (Expo) - error: generate-pch command failed with exit code 1

Building a React Native Expo app (prebuild on iOS, not using Expo Go) and running into this esoteric error that I can't seem to find elsewhere on the internet.
I'll post it here for the next unlucky React Native dev, and perhaps I'll find a solution and post that too.
expo run:ios output:
⚠️ (../../Library/Developer/Xcode/DerivedData/MyProject-epxolwjjgmimbdefugnlecrdysuv/Build/Intermediates.noindex/PrecompiledHeaders/MyProject-Bridging-Header-2vyenlvwppgam.dia:1:1)
Command PrecompileSwiftBridgingHeader failed with a nonzero exit code
^ Could not read serialized diagnostics file: error(in target 'MyProject' from project 'MyProject')
❌ error: generate-pch command failed with exit code 1 (use -v to see invocation)
› 1 error(s), and 1 warning(s)
Failed to build iOS project. "xcodebuild" exited with error code 65.
Xcode build output:
<unknown>:0: error: error opening input file '/Users/jh/Code/MyProject/ios/MyProject/MyProject-Bridging-Header.h' (No such file or directory)
<unknown>:0: error: cannot open file '/Users/jh/Library/Developer/Xcode/DerivedData/MyProject-epxolwjjgmimbdefugnlecrdysuv/Build/Intermediates.noindex/PrecompiledHeaders/MyProject-Bridging-Header-e8n926ydzbc0.dia' for diagnostics emission (No such file or directory)
/Users/jh/Library/Developer/Xcode/DerivedData/MyProject-epxolwjjgmimbdefugnlecrdysuv/Build/Intermediates.noindex/PrecompiledHeaders/MyProject-Bridging-Header-e8n926ydzbc0.dia:1:1: warning: Could not read serialized diagnostics file: error("Failed to open diagnostics file") (in target 'MyProject' from project 'MyProject')
Command PrecompileSwiftBridgingHeader failed with a nonzero exit code
Expo SDK version 44. I'm on a 2022 Mac Studio M1.
Okay, found the solution!
I had used npx react-native-rename to rename my project, but it didn't rename the Swift bridging header.
It's located in ios/MyProject/<oldname>-Bridging-Header.h.
renamed: ios/MyProject/OldName-Bridging-Header.h -> ios/MyProject/MyProject-Bridging-Header.h
While I was doing this, I also discovered that several of my bundle identifiers hadn't been moved over either. Do a codebase search for com.yourorganization.youroldbundlename to find & replace those too.
The locations I had to update:
./ios/MyProject.xcodeproj/project.pbxproj
./ios/MyProject/Info.plist
./app.json

Command PhaseScriptExecution failed with a nonzero exit code I

I am getting the below error
/Users/user321/Desktop/MapForAppNewest/Pods/Target Support
Files/Pods-MapForAppNewest/Pods-MapForAppNewest-frameworks.sh: line
114: local: `=': not a valid identifier
/Users/user321/Desktop/MapForAppNewest/Pods/Target Support Files/Pods-MapForAppNewest/Pods-MapForAppNewest-frameworks.sh: line
114: local:
`/Users/user321/Desktop/MapForAppNewest/Pods/Mapbox-iOS-SDK/dynamic/826E141E-8875-3C3B-A106-2B772F8A0684.bcsymbolmap':
not a valid identifier
Command PhaseScriptExecution failed with a nonzero exit code
I have found many similar questions but they all failed to address this specific problem and offer a solution which works here. So I ask What is the problem here and how do I go about fixing it? (im using Swift and Firebase)
Open the file - /Users/user321/Desktop/MapForAppNewest/Pods/Target Support Files/Pods-MapForAppNewest/Pods-MapForAppNewest-frameworks.sh
On line 114, delete the spacing before and after '='
Clean and build project
This worked for me
In my case, it was caused by renaming of the folder name (the folder containing the project)
I cloned my project 'hovermind' into 'Foo' folder
Installed pods
Then renamed (for some reason) 'Foo' into 'Foo XXX'
The error I was getting Command PhaseScriptExecution failed with a nonzero exit code ... /Hassan/Desktop/Foo: no such file ...
Solution
I just renamed back the folder name to 'Foo' ('Foo XXX' -> 'Foo') and it worked

Xcode Shell Script error exit code 2

I recently migrated to Xcode 9 and I'm trying to compile my project in iOS 11. I'm getting the following after I did "pod install" and "pod update" to my frameworks. Does any one know how to fix it?
Code Signing /Users/XXXXXX/Library/Developer/Xcode/DerivedData/XXXXXX-ctuqdlicbgzykkgkzocyagspzqch/Build/Products/Debug-iphonesimulator/'.app/Frameworks/AFNetworking.framework with Identity -
/usr/bin/codesign --force --sign - --preserve-metadata=identifier,entitlements '/Users/XXXXXX/Library/Developer/Xcode/DerivedData/XXXX-ctuqdlicbgzykkgkzocyagspzqch/Build/Products/Debug-iphonesimulator/'.app/Frameworks/AFNetworking.framework'
/Users/venkateshchathalavada/Documents/IOSWorkspace/cloudoffers-app/Pods/Target Support Files/Pods-'/Pods-'-frameworks.sh: eval: line 68: unexpected EOF while looking for matching `''
Command /bin/sh failed with exit code 2

Resources