Hi, the project isn’t built in Android Studio. The...
# multiplatform
s
Hi, the project isn’t built in Android Studio. The iOS build fails with the error below, working fine for the Android build.
Copy code
ld: warning: search path '/Users/sagarkhurana/AndroidStudioProjects/XYZ/iosApp/../shared/build/xcode-frameworks/Debug/iphonesimulator18.1' not found
ld: framework 'FBLPromises' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)

** BUILD FAILED **


The following build commands failed:
	Ld /Users/sagarkhurana/AndroidStudioProjects/X\ Y\ Z\ M/build/ios/Debug-iphonesimulator/X\ Y\ X\ M.app/M\ X\ X\ Y.debug.dylib normal (in target 'iosApp' from project 'iosApp')
	Building project iosApp with scheme iosApp and configuration Debug
(2 failures)
When running the project from Xcode, the app builds and installs on the simulator successfully. I have tried running the following commands, but it did not work to make it run from Android Studio. •
./gradlew clean
pod deintegerate
from iosApp Directory •
pod install
from iosApp Directory •
./gradlew sync
h
s
So, I cannot build the iOS App from the AS now and only from XCode
h
Delete the whole gradle cache folder, derived data from xcode and rebuild, that's how i fixed it