siraf
11/04/2022, 10:38 AMiosSimulatorArm64
in build.gradle.kts
but it didnt help.
I am getting these kind of errors:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_CLWorkerType", referenced from:
objc-class-ref in WorkerListViewController.o
due to
Undefined symbols for architecture x86_64
ayodele
11/04/2022, 10:40 AMbuild.gradle.kts
Mikael Stockman
11/04/2022, 10:41 AMiosX64
is the architecure you need to add.
Edit: Missed that you have a M1 Pro, so i don’t think my answer appliessiraf
11/04/2022, 10:44 AMSebastian Muggelberg
11/04/2022, 11:42 AMSebastian Muggelberg
11/04/2022, 11:44 AMLandry Norris
11/04/2022, 12:29 PMLandry Norris
11/04/2022, 12:30 PMsiraf
11/04/2022, 12:31 PMSebastian Muggelberg
11/04/2022, 12:32 PMarm64
from the excluded architectures then it will workLandry Norris
11/04/2022, 12:34 PMsiraf
11/04/2022, 12:37 PMSebastian Muggelberg
11/04/2022, 12:45 PMsiraf
11/04/2022, 1:23 PMLandry Norris
11/04/2022, 1:24 PMsiraf
11/04/2022, 1:25 PMsiraf
11/04/2022, 1:26 PMxcodebuild archive
commands creates wrong frameworks for me. It created framework related to spec.dependency 'SQLCipher', '4.5.2'
which is in my Podspec, but not the framework itself.tylerwilson
11/04/2022, 2:12 PMsiraf
11/04/2022, 2:45 PMkpgalligan
11/04/2022, 2:57 PMxcodebuild archive
. In theory, you can just build the XCFramework zip (You have XCFramework()
in the code). Also, you are declaring each framework architecture twice, as you have the cocoapods plugin and you’re explicitly declaring framework binaries. That will very likely mess with the build on some level. It’s possible you’re avoiding that by calling specific tasks, but still (description of the issue: https://touchlab.github.io/KMMBridge/TROUBLESHOOTING).kpgalligan
11/04/2022, 2:59 PMtylerwilson
11/04/2022, 4:54 PMsiraf
11/07/2022, 6:53 AMIn theory, you can just build the XCFramework zip (You have XCFramework() in the code)
I think I did this way already. After successful running of the app, I have opened in finder the .framework file and zipped it, then pushed it to the private repo - is that what you mean?
However, if I do it this way it would work only on real device if the app was ran on real device, and it would work only on simulator if framework was created while app was running on simulator.