Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug in https://github.com/inkeliz/gio-cmd #87

Open
gedw99 opened this issue Dec 19, 2024 · 5 comments
Open

bug in https://github.com/inkeliz/gio-cmd #87

gedw99 opened this issue Dec 19, 2024 · 5 comments

Comments

@gedw99
Copy link

gedw99 commented Dec 19, 2024

I am getting when I do a iOS build using our go-cmd at https://github.com/inkeliz/gio-cmd

clang: error: SDK does not contain 'libarclite' at the path '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphonesimulator.a'; try increasing the minimum deployment target

when I use https://github.com/gioui/gio-cmd I dont get this bug.

go run gioui.org/cmd/gogio -target ios -arch amd64 -o .bin/ios_amd64.app .
go run gioui.org/cmd/gogio -target ios -arch arm64 -o .bin/ios_arm64.app .
@inkeliz
Copy link
Contributor

inkeliz commented Dec 19, 2024

Can you try with -minsdk 15?
If that works, we need to increase the minimum SDK, from 11 to 15, or other.

Side-note: I'm currently using -minsdk 18, since I'm publishing it on a third-party store and the minimum is 18 for iPad.

@gedw99
Copy link
Author

gedw99 commented Dec 19, 2024

Thanks @inkeliz

If you know how , from a terminal, to configure the SDK used please let me know.

So it’s repeatable in CI.

@inkeliz
Copy link
Contributor

inkeliz commented Dec 19, 2024

I don't know how to install the latest SDK by terminal. Usually you go to "XCode" > "Settings" > "Components" and get the latest iPhone one. Also, update XCode to the latest version, in AppStore.

However, if you already had the latest version, just include -minsdk flag to force compile with that:

go run gioui.org/cmd/gogio -target ios -arch arm64 -o .bin/ios_arm64.app -minsdk 18 .

I'm not sure if 18 is required, maybe it can be 15, 16, 17 (...). Omitting -minsdk will use 11, which is quite old.

@gedw99
Copy link
Author

gedw99 commented Dec 19, 2024

Ah perfect . That will make it reproducible

@gedw99
Copy link
Author

gedw99 commented Dec 20, 2024

Ok trying out the -minsdk flag :)

using latest from:

https://github.com/gioui/gio -b v0.6.0
https://github.com/inkeliz/gio-cmd

On the hyperlink demo, lipo is complaining. So I guess https://github.com/inkeliz/gio-cmd/blob/main/gogio/iosbuild.go is not handling the -minsdk properly....

I marked the error for each one that fails...

# apple mac
# amd64 : works
go run gioui.org/cmd/gogio -schemes "testings" -target macos -arch amd64 -minsdk 18 -o .bin/app_amd64.app .
# arm64 : works
go run gioui.org/cmd/gogio -schemes "testings" -target macos -arch arm64 -minsdk 18 -o .bin/app_arm64.app .

# apple ios
# amd64: works
go run gioui.org/cmd/gogio -schemes "testings" -target ios -arch amd64 -minsdk 18 -o .bin/ios_amd64.app .
# arm64
#fails at lipo: gogio: xcrun lipo -o .bin/ios_arm64.app/Demo -create failed: error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: no input files specified.
go run gioui.org/cmd/gogio -schemes "testings" -target ios -arch arm64 -minsdk 18 -o .bin/ios_arm64.app .

# apple tv
# amd64: works
go run gioui.org/cmd/gogio -schemes "testings" -target tvos -arch amd64 -minsdk 18 -o .bin/tvos_amd64.app .
# arm64
# fails at lipo: gogio: xcrun lipo -o .bin/tvos_arm64.app/Demo -create failed: error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: no input files specified
go run gioui.org/cmd/gogio -schemes "testings" -target tvos -arch arm64 -minsdk 18 -o .bin/tvos_arm64.app .

# windows
# amd64: works
go run gioui.org/cmd/gogio -schemes "testings" -target windows -arch amd64 -o .bin/app_amd64.exe .
# arm64: works
go run gioui.org/cmd/gogio -schemes "testings" -target windows -arch arm64 -o .bin/app_arm64.exe .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants