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

Cant run on ios device. Shows Command PhaseScriptExecution failed with a nonzero exit code #24

Closed
aflahkp opened this issue Nov 2, 2020 · 1 comment

Comments

@aflahkp
Copy link

aflahkp commented Nov 2, 2020

I cannot run in ios device. I have added UnityFramework as in documentation. But while running im getting this errors.

PS: I can still run the unity game alone by chanigng the product. But Build fails when included in react native project.

Extracting arm64 from UnityFramework
fatal error: lipo: input file (/Users/myname/Library/Developer/Xcode/DerivedData/myapp-gwhkxmittlbkqsgzagmbvbwexrwd/Build/Products/Debug-iphoneos/myapp.app/Frameworks/UnityFramework.framework/UnityFramework) must be a fat file when the -extract option is specified

Merging extracted architectures: arm64
fatal error: lipo: can't open input file: /Users/myname/Library/Developer/Xcode/DerivedData/myapp-gwhkxmittlbkqsgzagmbvbwexrwd/Build/Products/Debug-iphoneos/myapp.app/Frameworks/UnityFramework.framework/UnityFramework-arm64 (No such file or directory)
rm: /Users/myname/Library/Developer/Xcode/DerivedData/myapp-gwhkxmittlbkqsgzagmbvbwexrwd/Build/Products/Debug-iphoneos/myapp.app/Frameworks/UnityFramework.framework/UnityFramework-arm64: No such file or directory

Replacing original executable with thinned version
mv: rename /Users/myname/Library/Developer/Xcode/DerivedData/myapp-gwhkxmittlbkqsgzagmbvbwexrwd/Build/Products/Debug-iphoneos/myapp.app/Frameworks/UnityFramework.framework/UnityFramework-merged to /Users/myname/Library/Developer/Xcode/DerivedData/myapp-gwhkxmittlbkqsgzagmbvbwexrwd/Build/Products/Debug-iphoneos/myapp.app/Frameworks/UnityFramework.framework/UnityFramework: No such file or directory

Command PhaseScriptExecution failed with a nonzero exit code

@aflahkp
Copy link
Author

aflahkp commented Nov 15, 2020

Sorry, it was due to an extra build script added in BuildPhases. The error was gone after removing this script.

@aflahkp aflahkp closed this as completed Nov 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant