New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #17896 (closed defect: invalid)

Opened 4 years ago

Last modified 3 years ago

xcodebuild: unknown option: -sdk

Reported by: skl@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 1.7.0
Keywords: Cc: jmr@…, mcalhoun@…
Port:

Description

I'm running Leopard 10.5.6 and XCode 3.0. When using the universal variant on some XCode project, xcodebuild exits with an error

erCode" && xcodebuild  -alltargets -configuration Deployment build -sdk /Developer/SDKs/MacOSX10.5.sdk OBJROOT=build/ SYMROOT=build/ ARCHS="ppc i386" MACOSX_DEPLOYMENT_TARGET=10.5 '
unknown option: -sdk

The patch described in https://trac.macports.org/ticket/17610 does not fix the bug. The manpage of xcodebuild says, that there should be an "=" char added to any '-option'. When calling xcodebuild with "-sdk=/Developer/SDKs/MacOSX10.5.sdk" everything runs well.

Change History

comment:1 Changed 4 years ago by jmr@…

  • Cc jmr@… added
  • Component changed from ports to base
  • Milestone changed from Port Bugs to MacPorts Future

We're recommending XCode 3.1 these days, try upgrading. The usage in my xcodebuild man page has:

[-sdk <sdkfullpath> | <sdkname>]

comment:2 Changed 4 years ago by mcalhoun@…

  • Cc mcalhoun@… added

Cc Me!

comment:3 Changed 4 years ago by mcalhoun@…

Since the fix seems to be to upgrade to the latest XCode, can this ticket be marked as invalid?

comment:4 Changed 4 years ago by jmr@…

  • Status changed from new to closed
  • Resolution set to invalid

The reporter hasn't said whether upgrading helped, but yeah, I think we can assume so.

comment:5 Changed 3 years ago by jmr@…

  • Milestone MacPorts Future deleted
Note: See TracTickets for help on using tickets.