Как использовать какаоподы с модулем FirebaseStorage в проекте KMP ⇐ IOS
Как использовать какаоподы с модулем FirebaseStorage в проекте KMP
I am trying to build app with kmp and i want to build android and ios app. so i have tried to implement cocoapods with native.cocoapods in kmp project
i have successfully added Google auth and firebase auth pods and implemented that functionality as well in to kmp project. this things works perfectly fine
but now problem started when i have tried to add pod for FirebaseStorage
here is what i have done
cocoapods { version = "1.0.0" ios.deploymentTarget = "14.1" summary = "Some description for the Shared Module" homepage = "Link to the Shared Module homepage" framework { baseName = "ComposeApp" isStatic = true } pod("FirebaseStorage"){ moduleName = "FirebaseStorage" extraOpts += listOf("-compiler-option", "-fmodules") // if i don't add this then getting error while sync build that add this lines } pod("FirebaseAuth") pod("GoogleSignIn") } extraOpts += listOf("-compiler-option", "-fmodules") I have added this by gradle sync suggestion. if i don't add this lines then sync gets fail so i have added this lines(I don't even know what this line does)
after adding above lines gradle sync success but then error started when i build ios app for debug or release
The following build commands failed: Copy /Users/dhvanilinfotech/Desktop/Multiplatform/TufeeMultiplatform/composeApp/build/cocoapods/synthetic/ios/build/Release-iphonesimulator/GTMSessionFetcher/GTMSessionFetcher_Core_Privacy.bundle/GTMSessionFetcher_GTMSessionFetcherCore.bundle /Users/dhvanilinfotech/Desktop/Multiplatform/TufeeMultiplatform/composeApp/build/cocoapods/synthetic/ios/build/Release-iphonesimulator/GTMSessionFetcher/GTMSessionFetcher_GTMSessionFetcherCore.bundle (in target 'GTMSessionFetcher-GTMSessionFetcher_Core_Privacy' from project 'Pods') Copy /Users/dhvanilinfotech/Desktop/Multiplatform/TufeeMultiplatform/composeApp/build/cocoapods/synthetic/ios/build/Release-iphonesimulator/GTMSessionFetcher/GTMSessionFetcher_Core_Privacy.bundle/Firebase_FirebaseInAppMessaging_iOS.bundle /Users/dhvanilinfotech/Desktop/Multiplatform/TufeeMultiplatform/composeApp/build/cocoapods/synthetic/ios/build/Release-iphonesimulator/GTMSessionFetcher/Firebase_FirebaseInAppMessaging_iOS.bundle (in target 'GTMSessionFetcher-GTMSessionFetcher_Core_Privacy' from project 'Pods') Copy /Users/dhvanilinfotech/Desktop/Multiplatform/TufeeMultiplatform/composeApp/build/cocoapods/synthetic/ios/build/Release-iphonesimulator/GTMSessionFetcher/GTMSessionFetcher_Core_Privacy.bundle/GoogleSignIn_GoogleSignIn.bundle /Users/dhvanilinfotech/Desktop/Multiplatform/TufeeMultiplatform/composeApp/build/cocoapods/synthetic/ios/build/Release-iphonesimulator/GTMSessionFetcher/GoogleSignIn_GoogleSignIn.bundle (in target 'GTMSessionFetcher-GTMSessionFetcher_Core_Privacy' from project 'Pods') (3 failures) i have created issue in youtrack to get full build trash
Источник: https://stackoverflow.com/questions/781 ... mp-project
I am trying to build app with kmp and i want to build android and ios app. so i have tried to implement cocoapods with native.cocoapods in kmp project
i have successfully added Google auth and firebase auth pods and implemented that functionality as well in to kmp project. this things works perfectly fine
but now problem started when i have tried to add pod for FirebaseStorage
here is what i have done
cocoapods { version = "1.0.0" ios.deploymentTarget = "14.1" summary = "Some description for the Shared Module" homepage = "Link to the Shared Module homepage" framework { baseName = "ComposeApp" isStatic = true } pod("FirebaseStorage"){ moduleName = "FirebaseStorage" extraOpts += listOf("-compiler-option", "-fmodules") // if i don't add this then getting error while sync build that add this lines } pod("FirebaseAuth") pod("GoogleSignIn") } extraOpts += listOf("-compiler-option", "-fmodules") I have added this by gradle sync suggestion. if i don't add this lines then sync gets fail so i have added this lines(I don't even know what this line does)
after adding above lines gradle sync success but then error started when i build ios app for debug or release
The following build commands failed: Copy /Users/dhvanilinfotech/Desktop/Multiplatform/TufeeMultiplatform/composeApp/build/cocoapods/synthetic/ios/build/Release-iphonesimulator/GTMSessionFetcher/GTMSessionFetcher_Core_Privacy.bundle/GTMSessionFetcher_GTMSessionFetcherCore.bundle /Users/dhvanilinfotech/Desktop/Multiplatform/TufeeMultiplatform/composeApp/build/cocoapods/synthetic/ios/build/Release-iphonesimulator/GTMSessionFetcher/GTMSessionFetcher_GTMSessionFetcherCore.bundle (in target 'GTMSessionFetcher-GTMSessionFetcher_Core_Privacy' from project 'Pods') Copy /Users/dhvanilinfotech/Desktop/Multiplatform/TufeeMultiplatform/composeApp/build/cocoapods/synthetic/ios/build/Release-iphonesimulator/GTMSessionFetcher/GTMSessionFetcher_Core_Privacy.bundle/Firebase_FirebaseInAppMessaging_iOS.bundle /Users/dhvanilinfotech/Desktop/Multiplatform/TufeeMultiplatform/composeApp/build/cocoapods/synthetic/ios/build/Release-iphonesimulator/GTMSessionFetcher/Firebase_FirebaseInAppMessaging_iOS.bundle (in target 'GTMSessionFetcher-GTMSessionFetcher_Core_Privacy' from project 'Pods') Copy /Users/dhvanilinfotech/Desktop/Multiplatform/TufeeMultiplatform/composeApp/build/cocoapods/synthetic/ios/build/Release-iphonesimulator/GTMSessionFetcher/GTMSessionFetcher_Core_Privacy.bundle/GoogleSignIn_GoogleSignIn.bundle /Users/dhvanilinfotech/Desktop/Multiplatform/TufeeMultiplatform/composeApp/build/cocoapods/synthetic/ios/build/Release-iphonesimulator/GTMSessionFetcher/GoogleSignIn_GoogleSignIn.bundle (in target 'GTMSessionFetcher-GTMSessionFetcher_Core_Privacy' from project 'Pods') (3 failures) i have created issue in youtrack to get full build trash
Источник: https://stackoverflow.com/questions/781 ... mp-project
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение
-
-
Как использовать fmt с модулем С++ 20 и модулем стандартной библиотеки С++ 23 в cmake?
Anonymous » » в форуме C++ - 0 Ответы
- 47 Просмотры
-
Последнее сообщение Anonymous
-