Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dautermann/2e230f92e9a0593d4661a365e569fa73 to your computer and use it in GitHub Desktop.
Save dautermann/2e230f92e9a0593d4661a365e569fa73 to your computer and use it in GitHub Desktop.
Create LibPoco framework for iPhone & Simulator
// here is how I created a libPoco xcframework
//
// after building libPoco
lipo iPhoneSimulator/arm64/libPocoJWT.a iPhoneSimulator/x86_64/libPocoJWT.a -create -output universal/libPocoJWT.a
lipo iPhoneSimulator/arm64/libPocoXML.a iPhoneSimulator/x86_64/libPocoXML.a -create -output universal/libPocoXML.a
lipo iPhoneSimulator/arm64/libPocoUtil.a iPhoneSimulator/x86_64/libPocoUtil.a -create -output universal/libPocoUtil.a
lipo iPhoneSimulator/arm64/libPocoCrypto.a iPhoneSimulator/x86_64/libPocoCrypto.a -create -output universal/libPocoCrypto.a
lipo iPhoneSimulator/arm64/libPocoFoundation.a iPhoneSimulator/x86_64/libPocoFoundation.a -create -output universal/libPocoFoundation.a
lipo iPhoneSimulator/arm64/libPocoNet.a iPhoneSimulator/x86_64/libPocoNet.a -create -output universal/libPocoNet.a
lipo iPhoneSimulator/arm64/libPocoNetSSL.a iPhoneSimulator/x86_64/libPocoNetSSL.a -create -output universal/libPocoNetSSL.a
lipo iPhoneSimulator/arm64/libPocoZip.a iPhoneSimulator/x86_64/libPocoZip.a -create -output universal/libPocoZip.a
lipo iPhoneSimulator/arm64/libPocoJSON.a iPhoneSimulator/x86_64/libPocoJSON.a -create -output universal/libPocoJSON.a
lipo iPhoneSimulator/arm64/libPocoEncodings.a iPhoneSimulator/x86_64/libPocoEncodings.a -create -output universal/libPocoEncodings.a
lipo iPhoneSimulator/arm64/libPocoData.a iPhoneSimulator/x86_64/libPocoData.a -create -output universal/libPocoData.a
xcodebuild -create-xcframework -library universal/libPocoXML.a -library iPhoneOS/arm64/libPocoXML.a -output universal/libPocoXML.xcframework
xcodebuild -create-xcframework -library universal/libPocoUtil.a -library iPhoneOS/arm64/libPocoUtil.a -output universal/libPocoUtil.xcframework
xcodebuild -create-xcframework -library universal/libPocoZip.a -library iPhoneOS/arm64/libPocoZip.a -output universal/libPocoZip.xcframework
xcodebuild -create-xcframework -library universal/libPocoNetSSL.a -library iPhoneOS/arm64/libPocoNetSSL.a -output universal/libPocoNetSSL.xcframework
xcodebuild -create-xcframework -library universal/libPocoNet.a -library iPhoneOS/arm64/libPocoNet.a -output universal/libPocoNet.xcframework
xcodebuild -create-xcframework -library universal/libPocoJSON.a -library iPhoneOS/arm64/libPocoJSON.a -output universal/libPocoJSON.xcframework
xcodebuild -create-xcframework -library universal/libPocoFoundation.a -library iPhoneOS/arm64/libPocoFoundation.a -output universal/libPocoFoundation.xcframework
xcodebuild -create-xcframework -library universal/libPocoCrypto.a -library iPhoneOS/arm64/libPocoCrypto.a -output universal/libPocoCrypto.xcframework
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment