Post

Replies

Boosts

Views

Activity

Reply to Both ios-arm64-simulator and ios-x86_64-simulator represent two equivalent library definitions
@bgeerdes Can you please give more details about what you did? When I try this I get "A library with the identifier "ios-arm64" already exists" What I tried: Compile sources with clang++ Link static libraries with libtool (one for each arch) Create frameworks from libs with lipo Create XCFramework from frameworks I also tried to combine arch in different ways, but I never got it to run in the M1 simulator (except with Rosetta enabled)
May ’21
Reply to Both ios-arm64-simulator and ios-x86_64-simulator represent two equivalent library definitions
Now I got to the "Both ios-arm64-simulator and ios-x86_64-simulator represent two equivalent library definitions." part. 🤬 If I remove one, I get "Both ios-arm64 and ios-armv7 represent two equivalent library definitions." How is this supposed to work for clang/lipo created frameworks? I can't find any documentation or anyone who wrote down how it should work 😢 $ xcodebuild -create-xcframework \ -framework build/libzip/iphoneos/arm64/libzip.framework \ -framework build/libzip/iphoneos/armv7/libzip.framework \ -framework build/libzip/iphonesimulator/arm64/libzip.framework \ -framework build/libzip/iphonesimulator/x86_64/libzip.framework \ -output app/Frameworks/libzip.xcframework Both ios-arm64-simulator and ios-x86_64-simulator represent two equivalent library definitions. make: *** [app/Frameworks/libzip.xcframework] Error 70 $ lipo -detailed_info build/libzip/iphoneos/arm64/libzip.framework/libzip Fat header in: build/libzip/iphoneos/arm64/libzip.framework/libzip fat_magic 0xcafebabe nfat_arch 1 architecture arm64 cputype CPU_TYPE_ARM64 cpusubtype CPU_SUBTYPE_ARM64_ALL capabilities 0x0 offset 32 size 2215800 align 2^3 (8) $ lipo -detailed_info build/libzip/iphoneos/armv7/libzip.framework/libzip Fat header in: build/libzip/iphoneos/armv7/libzip.framework/libzip fat_magic 0xcafebabe nfat_arch 1 architecture armv7 cputype CPU_TYPE_ARM cpusubtype CPU_SUBTYPE_ARM_V7 capabilities 0x0 offset 28 size 2140936 align 2^2 (4) $ lipo -detailed_info build/libzip/iphonesimulator/arm64/libzip.framework/libzip Fat header in: build/libzip/iphonesimulator/arm64/libzip.framework/libzip fat_magic 0xcafebabe nfat_arch 1 architecture arm64 cputype CPU_TYPE_ARM64 cpusubtype CPU_SUBTYPE_ARM64_ALL capabilities 0x0 offset 32 size 982720 align 2^3 (8) $ lipo -detailed_info build/libzip/iphonesimulator/x86_64/libzip.framework/libzip Fat header in: build/libzip/iphonesimulator/x86_64/libzip.framework/libzip fat_magic 0xcafebabe nfat_arch 1 architecture x86_64 cputype CPU_TYPE_X86_64 cpusubtype CPU_SUBTYPE_X86_64_ALL capabilities 0x0 offset 32 size 977840 align 2^3 (8)
May ’21