hey, is it possible to run the ios app directly fr...
# multiplatform
r
hey, is it possible to run the ios app directly from Android studio without opening xcode?
s
Yup.
r
hmm doesn’t seem to work even on a new project from wizard
iphone connected to the macbook through cable but doesn’t show here
or wait a second probably found why
does it run on real device or only simulator?
so it works on an empty project but doesn’t work with a project that uses cocoapods
Copy code
ld: framework 'Pods_PrayerCompanionIOS' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)

CpResource /Users/raedghazal/Mac-Directory/Work/PrayerCompanion/PrayerCompanionAndroid/build/ios/Debug-iphonesimulator/PrayerCompanionIOS.app/shared /Users/raedghazal/Mac-Directory/Work/PrayerCompanion/PrayerCompanionAndroid/shared (in target 'PrayerCompanionIOS' from project 'PrayerCompanionIOS')
    cd /Users/raedghazal/Mac-Directory/Work/PrayerCompanion/PrayerCompanionAndroid/iosApp
    builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/raedghazal/Mac-Directory/Work/PrayerCompanion/PrayerCompanionAndroid/shared /Users/raedghazal/Mac-Directory/Work/PrayerCompanion/PrayerCompanionAndroid/build/ios/Debug-iphonesimulator/PrayerCompanionIOS.app
Screenshot 2024-01-13 at 21.40.23.png
b
Cocoapods requires the project file to be xcproj not workspace.
r
you sure not the other way around?
this is the one xcode is using
and there is no xcproj
oh wait let me try this
for some reason i had
iosApp/iosApp.xcodeproj/project.xcworkspace
selected, went one step back and selected
iosApp/iosApp.xcworkspace
and it worked 🎉
👍 1
but still this is all on a simulator, can’t run it on my physical device
c
How did you make it run on your simulator from android studio. I having the hardest time making it run on a kmm project with no cocopod
b
oh yep @Raed Ghazal was thinking backwards.
1
r
@Cheick Kante check the screen shot of the configurations I sent above
👍 1