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

Update the OS X deployment target from 10.8 to 10.11 #577

Closed
wants to merge 1 commit into from

Conversation

Uncommon
Copy link
Contributor

Every time I build my project, I get a slew of warnings because libgit2 was built for 10.11, but ObjGit is targeting 10.8.

@Uncommon
Copy link
Contributor Author

The Travis build failure is on the iOS target, which I didn't change. I don't know what's going on there.

@pietbrauer
Copy link
Member

I did some digging around, because it annoyed me too. It seems like this is a bug in Xcode and should not cause a warning. I am strongly against setting the deployment target up, as it breaks other apps. GitHub Desktop for example is targeting 10.9.

Please see this thread: https://forums.developer.apple.com/thread/20024

@Uncommon
Copy link
Contributor Author

OK, sounds like this isn't the right solution then. Though I'm left wondering why libgit2 is getting built for 10.11. Maybe the build script doesn't specify, so it defaults to the latest.

@phatblat
Copy link
Member

@Uncommon Are the warnings coming from the linker phase of the libgit2 target?

ld: warning: object file (/usr/local/lib/libssh2.a(agent.o)) was built for newer OSX version (10.10) than being linked (10.8)
ld: warning: object file (/usr/local/lib/libssh2.a(channel.o)) was built for newer OSX version (10.10) than being linked (10.8)
ld: warning: object file (/usr/local/lib/libssh2.a(hostkey.o)) was built for newer OSX version (10.10) than being linked (10.8)
ld: warning: object file (/usr/local/lib/libssh2.a(session.o)) was built for newer OSX version (10.10) than being linked (10.8)
ld: warning: object file (/usr/local/lib/libssh2.a(userauth.o)) was built for newer OSX version (10.10) than being linked (10.8)
ld: warning: object file (External/libcrypto.a(dsa_lib.o)) was built for newer OSX version (10.10) than being linked (10.8)
ld: warning: object file (External/libcrypto.a(digest.o)) was built for newer OSX version (10.10) than being linked (10.8)
ld: warning: object file (External/libcrypto.a(rand_lib.o)) was built for newer OSX version (10.10) than being linked (10.8)
ld: warning: object file (External/libcrypto.a(rsa_lib.o)) was built for newer OSX version (10.10) than being linked (10.8)
ld: warning: object file (/usr/local/lib/libssh2.a(misc.o)) was built for newer OSX version (10.10) than being linked (10.8)
ld: warning: object file (/usr/local/lib/libssh2.a(openssl.o)) was built for newer OSX version (10.10) than being linked (10.8)
ld: warning: object file (/usr/local/lib/libssh2.a(global.o)) was built for newer OSX version (10.10) than being linked (10.8)
ld: warning: object file (/usr/local/lib/libssh2.a(kex.o)) was built for newer OSX version (10.10) than being linked (10.8)
ld: warning: object file (/usr/local/lib/libssh2.a(packet.o)) was built for newer OSX version (10.10) than being linked (10.8)
ld: warning: object file (/usr/local/lib/libssh2.a(transport.o)) was built for newer OSX version (10.10) than being linked (10.8)
ld: warning: object file (/usr/local/lib/libssh2.a(keepalive.o)) was built for newer OSX version (10.10) than being linked (10.8)
ld: warning: object file (External/libcrypto.a(asn1_lib.o)) was built for newer OSX version (10.10) than being linked (10.8)
ld: warning: object file (External/libcrypto.a(bio_lib.o)) was built for newer OSX version (10.10) than being linked (10.8)

These say 10.10 because I captured them last year.

@phatblat
Copy link
Member

Based on this SO answer, the fix may be to specify the CMAKE_OSX_SYSROOT like we do in update_libgit2_ios

@phatblat
Copy link
Member

Note that #570 resolves these warnings because libgit2 is built from an Xcode project instead of cmake.

@Uncommon
Copy link
Contributor Author

The warnings show up under the ObjectiveGit-Mac target rather than libgit2, but they look just like that.

@pietbrauer
Copy link
Member

@Uncommon do you still get these errors in Xcode 8?

@Uncommon
Copy link
Contributor Author

Yes, I still see them in Xcode 8 beta 2.

@Uncommon
Copy link
Contributor Author

Also in Xcode 8 final.

@tiennou
Copy link
Contributor

tiennou commented Sep 22, 2016

The libgit2 link might be fixable (we're in control of that, we might just need to pass the correct MACOSX_DEPLOYMENT_TARGET through CMake. libssh2 isn't so easy — AFAIK there's no way to ask Homebrew to do that...

@Uncommon Uncommon closed this Sep 5, 2017
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

Successfully merging this pull request may close these issues.

4 participants