diff --git a/.github/workflows/build-ios.yml b/.github/workflows/build-ios.yml index b17cd98..b96f50e 100644 --- a/.github/workflows/build-ios.yml +++ b/.github/workflows/build-ios.yml @@ -28,13 +28,16 @@ jobs: - name: Compile the iOS App run: | mkdir -p build + SDK_PATH=$(xcrun --sdk iphoneos --show-sdk-path) clang -v -o build/MyIOSApp main.c \ -I/opt/homebrew/opt/sdl2/include \ -L/opt/homebrew/opt/sdl2/lib \ -lSDL2 \ -framework UIKit \ -framework Foundation \ - -framework CoreGraphics + -framework CoreGraphics \ + -isysroot $SDK_PATH \ + -arch arm64 - name: Upload the build artifact uses: actions/upload-artifact@v3