https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
e

Eduardo Ruesta

02/28/2024, 2:49 AM
Hey guys!!! Im trying to run the iOS app with Compose Multiplatform in Android Studio. I configured the build iOS app but is not working when i run the app. Is like nothing happens. Only works of i run it in Xcode. Any thought? Thanks
m

McEna

02/28/2024, 3:03 AM
Sounds like AS isn't finding the simulator/device
e

Eduardo Ruesta

02/28/2024, 11:42 AM
I think that the issue, but i don't understand why... when i click on run its like nothing happens. Do you know a way to run the iOS build using the terminal? like we do with desktop
i found this on the Build Output:
Undefined symbols for architecture arm64:
"_objc_msgSend$transitLifecycleToStarted", referenced from:
-[CMPViewController viewControllerDidEnterWindowHierarchy] in ComposeApp(CMPViewController.o)
"_objc_msgSend$exceptionWithNamereasonuserInfo:", referenced from:
-[CMPViewController transitLifecycleToStarted] in ComposeApp(CMPViewController.o)
"_objc_msgSend$window", referenced from:
-[UIViewController(CMPUIKitUtilsPrivate) cmp_isInWindowHierarchy] in ComposeApp(CMPViewController.o)
"_objc_msgSend$parentViewController", referenced from:
-[UIViewController(CMPUIKitUtilsPrivate) cmp_isInWindowHierarchy] in ComposeApp(CMPViewController.o)
"_objc_msgSend$view", referenced from:
-[UIViewController(CMPUIKitUtilsPrivate) cmp_isInWindowHierarchy] in ComposeApp(CMPViewController.o)
"_objc_msgSend$cmp_isRootViewController", referenced from:
-[UIViewController(CMPUIKitUtilsPrivate) cmp_isInWindowHierarchy] in ComposeApp(CMPViewController.o)
"_objc_msgSend$connectedScenes", referenced from:
-[UIViewController(CMPUIKitUtilsPrivate) cmp_isRootViewController] in ComposeApp(CMPViewController.o)
"_objc_msgSend$cmp_isInWindowHierarchy", referenced from:
-[UIViewController(CMPUIKitUtilsPrivate) cmp_isInWindowHierarchy] in ComposeApp(CMPViewController.o)
___54-[CMPViewController scheduleHierarchyContainmentCheck]_block_invoke in ComposeApp(CMPViewController.o)
"_objc_msgSend$viewControllerDidEnterWindowHierarchy", referenced from:
-[CMPViewController viewWillAppear:] in ComposeApp(CMPViewController.o)
-[CMPViewController transitLifecycleToStarted] in ComposeApp(CMPViewController.o)
"_objc_msgSend$resolveAccessibilityContainer", referenced from:
-[CMPAccessibilityElement accessibilityContainer] in ComposeApp(CMPAccessibilityElement.o)
"_objc_msgSend$isKindOfClass:", referenced from:
-[UIViewController(CMPUIKitUtilsPrivate) cmp_isRootViewController] in ComposeApp(CMPViewController.o)
"_objc_msgSend$countByEnumeratingWithStateobjectscount:", referenced from:
-[UIViewController(CMPUIKitUtilsPrivate) cmp_isRootViewController] in ComposeApp(CMPViewController.o)
"_objc_msgSend$sharedApplication", referenced from:
-[UIViewController(CMPUIKitUtilsPrivate) cmp_isRootViewController] in ComposeApp(CMPViewController.o)
"_objc_msgSend$windows", referenced from:
-[UIViewController(CMPUIKitUtilsPrivate) cmp_isRootViewController] in ComposeApp(CMPViewController.o)
"_objc_msgSend$rootViewController", referenced from:
-[UIViewController(CMPUIKitUtilsPrivate) cmp_isRootViewController] in ComposeApp(CMPViewController.o)
"_objc_msgSend$class", referenced from:
-[UIViewController(CMPUIKitUtilsPrivate) cmp_isRootViewController] in ComposeApp(CMPViewController.o)
"_objc_msgSend$viewControllerDidLeaveWindowHierarchy", referenced from:
___54-[CMPViewController scheduleHierarchyContainmentCheck]_block_invoke in ComposeApp(CMPViewController.o)
"_objc_msgSend$scheduleHierarchyContainmentCheck", referenced from:
-[CMPViewController transitLifecycleToStarted] in ComposeApp(CMPViewController.o)
___54-[CMPViewController scheduleHierarchyContainmentCheck]_block_invoke in ComposeApp(CMPViewController.o)
"_objc_msgSend$presentingViewController", referenced from:
-[UIViewController(CMPUIKitUtilsPrivate) cmp_isInWindowHierarchy] in ComposeApp(CMPViewController.o)
"_objc_msgSend$accessibilityContainer", referenced from:
+[CMPAccessibilityElement accessibilityContainerOfObject:] in ComposeApp(CMPAccessibilityElement.o)
ld: symbol(s) not found for architecture arm64
3 Views