kstechnologies / NIRScanNano_iOS

This demo app includes an SDK for easy Bluetooth Low Energy communication with the Texas Instruments NIRScan Nano EVM.
12 stars 11 forks source link

Xcode 12 build error "Building for iOS, but the linked and embedded framework 'KSTSpectrumLibrary.framework' was built for iOS + iOS Simulator." #9

Open Seoras opened 3 years ago

Seoras commented 3 years ago

Apparently Apple are now requiring separate framwork binaries for iOS Release (ARM) and iOS Simulator (x86). The KST framework binary is a "fat" binary that contains both which is no longer supported/allowed. This change was introduced by Apple in Xcode 12.

See the stackoverflow questions/answers here and here for more information on this.

From one of the answers on stackoveflow:

I'm afraid that this is actually the correct error and the framework shouldn't contain iOS and iOS Simulator code at the same time. Apple tries to force us to use XCFrameworks for this purpose. They started it in XCode 11 and just tightened up the restrictions. The only correct way to resolve this is to rebuild the framework as an XCFramework. Which is easy to do:

bobkressin commented 3 years ago

I reached out to you privately, @Seoras , but we are taking a peek at this now, along with several critical updates for both iOS and Android. Feel free to update and submit a Pull Request for the benefit of everyone. Thanks!

dinithep commented 2 years ago

@bobkressin is there any updated versions? both android and ios?