MetaMask / metamask-mobile

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

Issues running fresh install #7194

Open kyleyakamoto opened 1 year ago

kyleyakamoto commented 1 year ago

Description

I have a few issues running MetaMask mobile in simulator so I can debug the dapp I work on and get console logs. I just completed a fresh install because my previous installation from a few months ago wasn't working and I needed to upgrade to the latest MacOS. I followed all the instructions in the wiki, which I had done successfully a few months ago

The first is 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')

I have tried bumping the versions used but this seems weird because it is a fresh install.

The second is: SwiftVerifyEmittedModuleInterface normal arm64 Verifying\ emitted\ module\ interface\ YogaKit.private.swiftinterface /Users/ ............ /Intermediates.noindex/Pods.build/Debug-iphonesimulator/YogaKit.build/Objects-normal/arm64/YogaKit.private.swiftinterface (in target 'YogaKit' from project 'Pods')

I don't seem able to install YogaKit, which I have noticed is deprecated. I have tried manually installing Pods but it has not worked.

I would appreciate any help! Thank you very much

anaamolnar commented 1 year ago

Hello, @kyleyakamoto. Thanks for reaching out! I have found the following solution that could help you: https://stackoverflow.com/questions/54704207/the-ios-simulator-deployment-targets-is-set-to-7-0-but-the-range-of-supported-d Please let me know if it works. Thanks!

MonchiLin commented 1 year ago

Hello, @kyleyakamoto. Thanks for reaching out! I have found the following solution that could help you: https://stackoverflow.com/questions/54704207/the-ios-simulator-deployment-targets-is-set-to-7-0-but-the-range-of-supported-d Please let me know if it works. Thanks!

Hey, the Stack couldn't resolve this issue, in fact, the following code is identical to the Stack meaning.

https://github.com/MetaMask/metamask-mobile/blob/main/ios/Podfile#L26

Due to updates to Xcode 15(or 14.3) this problem is getting a bit tricky now, but it can still be resolved step by step.

Firstly: In the latest code, submodules are outdated. You need to run git submodule update --init --remote to update the git submodule. It can solve the outdated IPHONEOS_DEPLOYMENT_TARGET problem of the branch-ios-sdk.

Secondly: The react-native-aes-crypto-forked pod file is outdated, which I think can be fixed through patch-package.

Finally: The IPHONEOS_DEPLOYMENT_TARGET of ios/mixpanel-iphone hasn't been correctly set, this requires the owner to update the code.

I'm wondering if anyone is working on this? If not, I'd be willing to try.

Cal-L commented 1 year ago

Hello, @kyleyakamoto. Thanks for reaching out! I have found the following solution that could help you: https://stackoverflow.com/questions/54704207/the-ios-simulator-deployment-targets-is-set-to-7-0-but-the-range-of-supported-d Please let me know if it works. Thanks!

Hey, the Stack couldn't resolve this issue, in fact, the following code is identical to the Stack meaning.

https://github.com/MetaMask/metamask-mobile/blob/main/ios/Podfile#L26

Due to updates to Xcode 15(or 14.3) this problem is getting a bit tricky now, but it can still be resolved step by step.

Firstly: In the latest code, submodules are outdated. You need to run git submodule update --init --remote to update the git submodule. It can solve the outdated IPHONEOS_DEPLOYMENT_TARGET problem of the branch-ios-sdk.

Secondly: The react-native-aes-crypto-forked pod file is outdated, which I think can be fixed through patch-package.

Finally: The IPHONEOS_DEPLOYMENT_TARGET of ios/mixpanel-iphone hasn't been correctly set, this requires the owner to update the code.

I'm wondering if anyone is working on this? If not, I'd be willing to try.

Thank for for the insight. We are currently tracking work to make MetaMask mobile compatible with Xcode 15 and have not started yet. In the meantime feel free to experiment with getting Xcode 15 beta to build. If you are blocked, I'd recommend building on Xcode 14.2 and below for now.

kyleyakamoto commented 1 year ago

Thanks everyone!