I've cross-compiled the PoDoFo (https://github.com/podofo/podofo) library for iOS using conan with the following profiles:
Profile host:
[settings]
arch=armv8
build_type=Release
compiler=apple-clang
compiler.libcxx=libc++
compiler.version=15
os=iOS
os.sdk=iphoneos
os.version=15.0
Profile build:
[settings]
arch=armv8
build_type=Release
compiler=apple-clang
compiler.cppstd=gnu17
compiler.libcxx=libc++
compiler.version=15
os=Macos
Xcode gives me the following build error when I add the resulting libpodofo.0.11.0.dylib in my project:
ld: building for 'iOS', but linking in dylib (/Users/tarlanismayilsoy/Documents/iOS Projects/.../Resources/Podofo/libpodofo.0.11.0.dylib) built for 'macOS'
I don't understand why Xcode is complaining since I've built the library for iOS, not MacOS (see the profiles above). I'd appreciate it if someone with cross-compilation experience could help.