metamask-mobile
                                
                                 metamask-mobile copied to clipboard
                                
                                    metamask-mobile copied to clipboard
                            
                            
                            
                        MetaMask Mobile build error when running yarn start:ios
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.
I am also getting the same error. Would appreciate any help.
same here
same here
same here
Any update on this ?
same here
build in Xcode 14, macOS Ventura.
same error

I solved this, you should git submodule update
I had the same problem on my m1 macbook, and I solved it by modifying the ruby version.

Same for me, ruby update didn't help
Same here please help :)
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.
git submodule updatefixed 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 setupagain after cloning the submodules.
I faced the same error. but it worked after running these commands.
I tried to use “git submodule update” but it didn't work,please help
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.