I'm trying to move away from cocoapods and basical...
# compose-ios
c
I'm trying to move away from cocoapods and basically just applied every commit in order from the template repo: https://github.com/JetBrains/compose-multiplatform-ios-android-template i also ran pod deintegrate. now when I try to run the ios app from AS I get an error of
"xcodebuild: error: '/Users/cidle/dev/rollertoaster/iosApp/iosApp.xcworkspace' does not exist.
any tips?
if I try to run the ios app from xcode (i opened up xcodeproj because xcworkspace is deleted) then i get an error of
No such module 'shared'
I replaced my iOSApp folder with just the recloned folder from the compose ios template. The app seems to compile but doesn't launch?
/Users/cidle/dev/rollertoaster/build/ios/Debug-iphonesimulator/null.app
is null.app an issue?
l
Did you change the run config to open the original project folder? When using cocoapods, you generally open the xcworkspace or its xcproj. Now that it doesn't exist, AS will be confused if you don't change the run config.
c
yeah. i changed the run config to use project file of
/Users/cidle/dev/rollertoaster/iosApp/iosApp.xcodeproj
which leads to the build apparently being successful but still get
Copy code
/Users/cidle/dev/rollertoaster/build/ios/Debug-iphonesimulator/null.app

Process finished with exit code 0
whats interesting is that i can actually open iosApp.xcodeproj in xcode and run the app there. but cant deploy from AS anymore
hmmm
so close
l
I forget the exact build variable, but there's something along the lines of EXECUTABLE_NAME in XCode config. Check that it's not empty.
c
Config.xcconfig
?
I have these vars
Copy code
TEAM_ID=
BUNDLE_ID=com.myapplication.common
APP_NAME=TheApp
im running on a simulator. so i shouldn't need a team_id
i wonder if the bundle id has to be defined anywhere else
l
I think there's an executable name in build settings -> Build, execution, and deployment
c
in xcode ^?
l
It may also be in the info.plist section of xcode (I think also in build settings). I remember seeing this before because executable name is the expansion of another variable, which was often empty in some templates.
c
yeah. that all seems to exist.
has to be something suppper minor hm 😅
l
It usually is. XCode's build settings needs to have a 'abandon all hope, ye who enter here' banner.
😀 1
c
ok. i think its working now. i did two things. not sure which one fixed it. 1. i opened the project with AS hedgehog beta 1 2. i changed the BUNDLE_ID to be the same as the Android app id
thanks for the help @Landry Norris
👍 1