Insta360Develop / CameraSDK-iOS

iOS SDK to control Insta360 cameras.
33 stars 5 forks source link

architecture arm64 error #31

Open AlaaElden98 opened 5 months ago

AlaaElden98 commented 5 months ago

1- Added the Sdks

Screenshot 2024-01-08 at 03 33 55 Screenshot 2024-01-08 at 03 36 01

2- Created Cartfile with binaries, then run carthage update

On build, gets and error:

ld: building for iOS Simulator, but linking in dylib built for iOS, file 'Carthage/Build/iOS/INSCoreMedia.framework/INSCoreMedia' for architecture arm64

I'm working on m1 mac, xcode version 15.1

Any clue how to tackle this ?

sssuourabh commented 4 months ago

you just want to run the application or use Insta SDK on iOS simulator?

jessearmandse commented 1 week ago

I have mentioned this in #40

To have a universal framework, you'd need to build another simulator target. This can be an empty target in Xcode with sdk set to iphonesimulator. Then, you'd have to create a new xcframework from both architecture.

The resulting xcframework should contain these files:

Info.plist
ios-arm64
ios-arm64_x86_64-simulator

I wish Insta360 would just provide a proper INSCameraSDK.xcframework and INSCoreMedia.xcframework with universal architecture for us