Matheus Finatti
07/26/2021, 8:42 AMcopyFramework in its build phases, this target is then included in all projects.
I have tried adding it by changing copyFramework to the new embedAndSignFrameworkForXCode which didn’t work (project won’t compile because it can’t find the shared lib No such module 'shared' .
Also tried removing this target entirely and recreating the steps in the blog post in every project, but it also didn’t work.iamsteveholmes
07/26/2021, 6:13 PMrusshwolf
07/26/2021, 7:28 PMshared?Matheus Finatti
07/26/2021, 7:42 PMshared but I've adjusted that in gradle by setting the framework's baseName and making the adjustments in Xcode where appropriaterusshwolf
07/26/2021, 7:43 PMNo such module 'shared' or is the error reporting your actual module name?Matheus Finatti
07/26/2021, 7:44 PMMatheus Finatti
07/26/2021, 7:45 PMimport MobileCommonLib --> No such module 'MobileCommonLib'russhwolf
07/26/2021, 7:46 PMMatheus Finatti
07/26/2021, 7:46 PMios_common_X
ios_common_Y
ios_feature_A
ios_feature_B
app
where all the projects depend on the shared lib.Matheus Finatti
07/26/2021, 7:46 PMMatheus Finatti
07/26/2021, 7:48 PMClass X is implemented in both module A and mobule B. One of the two will be used, which one is undefined
and this runtime exception
Unable to add 'toKotlin:' method to NSBLock classrusshwolf
07/26/2021, 7:56 PMMatheus Finatti
07/26/2021, 8:08 PMcopyFramework.
Under the app project we have a target called MobileCommonLib which calls copyFramework in its build phases.
Then, every module in iOS have it as a dependency.russhwolf
07/26/2021, 8:10 PMembedAndSignFrameworkForXCode task succeed? Maybe there's just a name mismatch somewhereMatheus Finatti
07/26/2021, 8:15 PMrusshwolf
07/26/2021, 8:17 PMMatheus Finatti
07/26/2021, 8:19 PMTask :common:embedAndSignAppleFrameworkForXcode UP-TO-DATE but I don't see the compiled framework anywhere in my iOS folderMatheus Finatti
07/26/2021, 8:25 PM./gradlew clean and it completes successfullyrusshwolf
07/26/2021, 8:28 PMMatheus Finatti
07/26/2021, 8:30 PMxcode-frameworks/Debug/iphonesimulator14.5/ with the correct name
a folder MobileCommonLib.framework and a file MobileCommonLib.framework.dSYMMatheus Finatti
07/26/2021, 8:35 PMFramework search path to the build folderMatheus Finatti
07/26/2021, 8:37 PMSDK_NAME folder from
$(SRCROOT)/../shared/$(CONFIGURATION)/$(SDK_NAME)
is resolved as iphoneos14.5 in XCode, while it's generating iphonesimulator14.5 not sure it makes a difference.Matheus Finatti
07/26/2021, 8:40 PM