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

yarn start:ios fail iOS simulator #6418

Closed
jalaguerom opened this issue May 17, 2023 · 3 comments
Closed

yarn start:ios fail iOS simulator #6418

jalaguerom opened this issue May 17, 2023 · 3 comments
Labels
Sev2-normal An issue that may lead to users misunderstanding some limited risks they are taking team-mobile-platform type-bug Something isn't working

Comments

@jalaguerom
Copy link

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):

  • Device: Mac
  • OS: macOS Ventura 13.3.1
  • App Version 6.4.0
  • XCode version 14.3

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

  • How critical is the impact of this bug on a user?
  • Add stats if available on % of customers impacted
  • Is this visible to all users?
  • Is this tech debt?
@jalaguerom jalaguerom added awaiting-metamask PR or issue awaiting feedback from metamask team needs-triage Issues that require triage type-bug Something isn't working labels May 17, 2023
@anaamolnar anaamolnar added Sev2-normal An issue that may lead to users misunderstanding some limited risks they are taking team-mobile-client and removed needs-triage Issues that require triage awaiting-metamask PR or issue awaiting feedback from metamask team labels May 18, 2023
@anaamolnar
Copy link

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
Copy link

wantaekchoi commented May 22, 2023

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: #6158

@anaamolnar
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Sev2-normal An issue that may lead to users misunderstanding some limited risks they are taking team-mobile-platform type-bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants