MetaMask / metamask-mobile

Mobile web browser providing access to websites that use the Ethereum blockchain
https://metamask.io
Other
2.18k stars 1.12k forks source link

`yarn start:ios` fail iOS simulator #6418

Closed jalaguerom closed 1 year ago

jalaguerom commented 1 year ago

Describe the bug Metamask build fails when trying to run yarn start:ios. yarn setup works fine but I cannot run the app in a simulator

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=1BDADEF1-8F12-49C8-ADE7-378FFE501B3B

User defaults from command line:
    IDEPackageSupportUseBuiltinSCM = YES

Prepare packages

Computing target dependency graph and provisioning inputs

Create build description
Build description signature: 568784b6f5b32972502f60effa321d4a
Build description path: /Users/cx02879/Library/Developer/Xcode/DerivedData/MetaMask-cgmdoluxjimdwucmoxkegslvmtin/Build/Intermediates.noindex/XCBuildData/568784b6f5b32972502f60effa321d4a.xcbuilddata

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
ClangStatCache /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.4.sdk /Users/cx02879/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/iphonesimulator16.4-20E238-.sdkstatcache
    cd /Users/cx02879/Desktop/metamask-mobile/ios
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang-stat-cache /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.4.sdk -o /Users/cx02879/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/iphonesimulator16.4-20E238-.sdkstatcache

ProcessInfoPlistFile /Users/cx02879/Library/Developer/Xcode/DerivedData/MetaMask-cgmdoluxjimdwucmoxkegslvmtin/Build/Products/Debug-iphonesimulator/Lottie.framework/Info.plist /Users/cx02879/Desktop/metamask-mobile/node_modules/lottie-ios/Lottie/Info.plist (in target 'Lottie_iOS' from project 'Lottie')
    cd /Users/cx02879/Desktop/metamask-mobile/node_modules/lottie-ios
    builtin-infoPlistUtility /Users/cx02879/Desktop/metamask-mobile/node_modules/lottie-ios/Lottie/Info.plist -producttype com.apple.product-type.framework -expandbuildsettings -format binary -platform iphonesimulator -o /Users/cx02879/Library/Developer/Xcode/DerivedData/MetaMask-cgmdoluxjimdwucmoxkegslvmtin/Build/Products/Debug-iphonesimulator/Lottie.framework/Info.plist

Ld /Users/cx02879/Library/Developer/Xcode/DerivedData/MetaMask-cgmdoluxjimdwucmoxkegslvmtin/Build/Products/Debug-iphonesimulator/Lottie.framework/Lottie normal (in target 'Lottie_iOS' from project 'Lottie')
    cd /Users/cx02879/Desktop/metamask-mobile/node_modules/lottie-ios
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -Xlinker -reproducible -target arm64-apple-ios8.0-simulator -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.4.sdk -L/Users/cx02879/Library/Developer/Xcode/DerivedData/MetaMask-cgmdoluxjimdwucmoxkegslvmtin/Build/Intermediates.noindex/EagerLinkingTBDs/Debug-iphonesimulator -L/Users/cx02879/Library/Developer/Xcode/DerivedData/MetaMask-cgmdoluxjimdwucmoxkegslvmtin/Build/Products/Debug-iphonesimulator -F/Users/cx02879/Library/Developer/Xcode/DerivedData/MetaMask-cgmdoluxjimdwucmoxkegslvmtin/Build/Intermediates.noindex/EagerLinkingTBDs/Debug-iphonesimulator -F/Users/cx02879/Library/Developer/Xcode/DerivedData/MetaMask-cgmdoluxjimdwucmoxkegslvmtin/Build/Products/Debug-iphonesimulator -filelist /Users/cx02879/Library/Developer/Xcode/DerivedData/MetaMask-cgmdoluxjimdwucmoxkegslvmtin/Build/Intermediates.noindex/Lottie.build/Debug-iphonesimulator/Lottie_iOS.build/Objects-normal/arm64/Lottie.LinkFileList -install_name @rpath/Lottie.framework/Lottie -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/cx02879/Library/Developer/Xcode/DerivedData/MetaMask-cgmdoluxjimdwucmoxkegslvmtin/Build/Intermediates.noindex/Lottie.build/Debug-iphonesimulator/Lottie_iOS.build/Objects-normal/arm64/Lottie_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -fapplication-extension -Xlinker -no_adhoc_codesign -compatibility_version 1 -current_version 1 -Xlinker -dependency_info -Xlinker /Users/cx02879/Library/Developer/Xcode/DerivedData/MetaMask-cgmdoluxjimdwucmoxkegslvmtin/Build/Intermediates.noindex/Lottie.build/Debug-iphonesimulator/Lottie_iOS.build/Objects-normal/arm64/Lottie_dependency_info.dat -o /Users/cx02879/Library/Developer/Xcode/DerivedData/MetaMask-cgmdoluxjimdwucmoxkegslvmtin/Build/Products/Debug-iphonesimulator/Lottie.framework/Lottie
ld: file not found: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphonesimulator.a
clang: error: linker command failed with exit code 1 (use -v to see invocation)

/Users/cx02879/Desktop/metamask-mobile/ios/branch-ios-sdk/carthage-files/BranchSDK.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to 16.4.99. (in target 'Branch' from project 'BranchSDK')
/Users/cx02879/Desktop/metamask-mobile/ios/mixpanel-iphone/Mixpanel.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to 16.4.99. (in target 'Mixpanel' from project 'Mixpanel')
/Users/cx02879/Desktop/metamask-mobile/node_modules/react-native-aes-crypto-forked/ios/RCTAesForked.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.4.99. (in target 'RCTAesForked' from project 'RCTAesForked')
warning: Run script build phase 'Override xcconfig files' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'MetaMask' from project 'MetaMask')
warning: Run script build phase 'Bundle React Native code and images' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'MetaMask' from project 'MetaMask')
/Users/cx02879/Desktop/metamask-mobile/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 11.0 to 16.4.99. (in target 'Lottie_iOS' from project 'Lottie')

2023-05-17 09:35:04.276 xcodebuild[83142:2466231] DVTCoreDeviceEnabledState: DVTCoreDeviceEnabledState_Disabled set via user default (DVTEnableCoreDevice=disabled)
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:iOS Simulator, id:1BDADEF1-8F12-49C8-ADE7-378FFE501B3B, OS:16.4, name:iPhone 12 Pro }
{ platform:iOS Simulator, id:1BDADEF1-8F12-49C8-ADE7-378FFE501B3B, OS:16.4, name:iPhone 12 Pro }
** BUILD FAILED **

The following build commands failed:
    Ld /Users/cx02879/Library/Developer/Xcode/DerivedData/MetaMask-cgmdoluxjimdwucmoxkegslvmtin/Build/Products/Debug-iphonesimulator/Lottie.framework/Lottie normal (in target 'Lottie_iOS' from project 'Lottie')
(1 failure)

To Reproduce Run yarn start:ios

Expected behavior Metamask builds successfully

Smartphone (please complete the following information):


to be added after bug submission by internal support / PM Severity

anaamolnar commented 1 year ago

Hello @jalaguerom. Thanks for reporting! There is currently an issue with version 14.3. Could you please try reverting to 14.2 temporarily? Thank you!

wantaekchoi commented 1 year ago

i fix this error with https://github.com/kamyarelyasi/Libarclite-Files

cd /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/
sudo mkdir arc
cd  arc
sudo git clone https://github.com/kamyarelyasi/Libarclite-Files.git .
sudo chmod +x *

but i encountered another error, please check: https://github.com/MetaMask/metamask-mobile/issues/6158

anaamolnar commented 1 year ago

Hey, @wantaekchoi. I will close this and ask the team to investigate the other issue. Thanks!