build-ios.sh 310 B

12345678910
  1. # Point sysdir to iOS SDK
  2. export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk
  3. # Create object files with iOS architecture
  4. gcc -c enet.c -fembed-bitcode -target arm64-apple-ios
  5. # Create static library
  6. libtool -static enet.o -o libenet.a
  7. rm enet.o