Jordan Petersen
06/30/2023, 5:14 PMcompose-multiplatform-ios-android-template
and wondering if someone can point me in the right direction. I have the vanilla template and I’m trying to pull in GoogleMLKit/BarcodeScanning ~> 3.2.0
pod and cannot get the ios target to run correctly from AS.
If I open the app in xCode its running fine (minus some ios deployment target warnings) but from AS i get:
warning: None of the architectures in ARCHS (arm64) are valid. Consider setting ARCHS to $(ARCHS_STANDARD) or updating it to include at least one value from VALID_ARCHS (arm64, arm64e, i386, x86_64) which is not in EXCLUDED_ARCHS (arm64). (in target 'iosApp' from project 'iosApp')
…
/path/to/project/iosApp/Pods/Target Support Files/Pods-iosApp/Pods-iosApp-frameworks.sh: line 132: ARCHS[@]: unbound variable
I tried a few possible fixes I found, like making sure the launch config is point at the workspace, and removing the excluded architectures from the iosApp build settings in xcode but still not having much luck.Jordan Petersen
06/30/2023, 5:15 PMframework not found Pods_iosApp
error like Marco did but in my case my launch config points at iosApp.xcworkspace
so i don’t think this is the issue. (edited)
We are able to get it to run fine from AS on a intel based mac so I think this might be a arm64 issue.Dima Avdeev
07/03/2023, 6:06 AMDima Avdeev
07/03/2023, 6:08 AMJordan Petersen
07/03/2023, 6:15 PMJAVA_VERSION="17.0.7"
...
OS_ARCH="aarch64"
OS_NAME="Darwin"
Dima Avdeev
07/03/2023, 7:21 PMDima Avdeev
07/03/2023, 7:23 PMbrew install kdoctor
Run it in project directory and copy console output
kdoctor
Dima Avdeev
07/03/2023, 7:23 PMJordan Petersen
07/03/2023, 7:49 PMkdoctor
Environment diagnose (to see all details, use -v option):
[✓] Operation System
[✓] Java
[✓] Android Studio
[✓] Xcode
[✓] Cocoapods
Conclusion:
✓ Your system is ready for Kotlin Multiplatform Mobile Development!
Jordan Petersen
07/03/2023, 7:51 PMDima Avdeev
07/05/2023, 12:38 PMJordan Petersen
07/05/2023, 5:22 PM