metamask-mobile icon indicating copy to clipboard operation
metamask-mobile copied to clipboard

MetaMask Mobile build error when running yarn start:ios

Open anxiubin opened this issue 3 years ago • 7 comments

Describe the bug

An Error is occured when running yarn start:ios for MetaMask Mobile How can I build without errors? I would appreciate a little bit of help.

Error messages

yarn run v1.22.17
$ ./scripts/build.sh ios debug

-------------------------------------------

  🚀 BUILDING IOS IN DEBUG MODE 

-------------------------------------------

$ node ./scripts/metamask-bot-build-generate-static-assets
🔎 Detected 498 count in contract-map.json
✅ Images module generated at - /Users/subin/Desktop/metamask-mobile-main/app/images/static-logos.js
✅ Package JSON generated at - /Users/subin/Desktop/metamask-mobile-main/app/images/package.json
✅ Finished generating static logo assets! 🎉🎉
fatal: not a git repository (or any of the parent directories): .git
info Found Xcode workspace "MetaMask.xcworkspace"
info Building (using "xcodebuild -workspace MetaMask.xcworkspace -configuration Debug -scheme MetaMask -destination id=944A5D73-B75F-4893-B35F-88143FA2A002")
(node:69707) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening MetaMask.xcworkspace.
Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace MetaMask.xcworkspace -configuration Debug -scheme MetaMask -destination id=944A5D73-B75F-4893-B35F-88143FA2A002

User defaults from command line:
    IDEPackageSupportUseBuiltinSCM = YES

note: Using new build system
note: Planning
Analyze workspace

Create build description
Build description signature: b262917a5690e064f8b6016517c4f3ba
Build description path: /Users/subin/Library/Developer/Xcode/DerivedData/MetaMask-csixhfxohselarfvceilqlimwhfr/Build/Intermediates.noindex/XCBuildData/b262917a5690e064f8b6016517c4f3ba-desc.xcbuild

note: Build preparation complete
warning: Building targets in manual order is deprecated - choose Dependency Order in scheme settings instead, or set DISABLE_MANUAL_TARGET_ORDER_BUILD_WARNING in any of the targets in the current scheme to suppress this warning
/Users/subin/Desktop/metamask-mobile-main/node_modules/lottie-ios/Lottie.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.2.99. (in target 'Lottie_iOS' from project 'Lottie')
/Users/subin/Desktop/metamask-mobile-main/ios/MetaMask.xcodeproj: error: This Copy Files build phase contains a reference to a missing file 'Mixpanel.framework'. (in target 'MetaMask' from project 'MetaMask')
/Users/subin/Desktop/metamask-mobile-main/ios/MetaMask.xcodeproj: error: This Copy Files build phase contains a reference to a missing file 'Branch.framework'. (in target 'MetaMask' from project 'MetaMask')

objc[69726]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib (0x1ffc33b78) and /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1106042c8). One of the two will be used. Which one is undefined.
objc[69726]: Class AMSupportURLSession is implemented in both /usr/lib/libauthinstall.dylib (0x1ffc33bc8) and /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x110604318). One of the two will be used. Which one is undefined.
** BUILD FAILED **


info Run CLI with --verbose flag for more details.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

anxiubin avatar Feb 07 '22 03:02 anxiubin

I am also getting the same error. Would appreciate any help.

lindiwemutungamiri avatar Mar 02 '22 21:03 lindiwemutungamiri

same here

nitoba avatar Apr 02 '22 05:04 nitoba

same here

daveg7lee avatar Apr 29 '22 09:04 daveg7lee

same here

yuhai-yang avatar May 16 '22 02:05 yuhai-yang

Any update on this ?

akshay-bhimani-pedalsup avatar Jun 03 '22 06:06 akshay-bhimani-pedalsup

same here

zyvv avatar Jul 18 '22 07:07 zyvv

build in Xcode 14, macOS Ventura. same error 截屏2022-09-22 下午8 59 33

splcz avatar Sep 22 '22 12:09 splcz

I solved this, you should git submodule update

splcz avatar Sep 23 '22 08:09 splcz

I had the same problem on my m1 macbook, and I solved it by modifying the ruby version. image

ihj0906 avatar Jan 27 '23 01:01 ihj0906

Same for me, ruby update didn't help

vitamin33 avatar Feb 11 '23 11:02 vitamin33

Same here please help :)

PolEpie avatar Mar 02 '23 12:03 PolEpie

git submodule update fixed the issue for me.

Note, that it took a very long time to clone in (without any progress feedback), but it worked eventually.

Also, I think I had to run yarn setup again after cloning the submodules.

kylekaplan avatar Mar 03 '23 18:03 kylekaplan

git submodule update fixed the issue for me.

Note, that it took a very long time to clone in (without any progress feedback), but it worked eventually.

Also, I think I had to run yarn setup again after cloning the submodules.

I faced the same error. but it worked after running these commands.

Naokiakazawa avatar Mar 05 '23 04:03 Naokiakazawa

I tried to use “git submodule update” but it didn't work,please help

petite-dd avatar Apr 07 '23 05:04 petite-dd

This issue was closed because it has been stalled for 7 days with no activity. If you feel this was closed in error please reopen and provide evidence on the current production app. Thank you for your contributions.

github-actions[bot] avatar Jun 16 '23 23:06 github-actions[bot]