Opened 15 years ago

Closed 15 years ago

Last modified 14 years ago

#17896 closed defect (invalid)

xcodebuild: unknown option: -sdk

Reported by: skl@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 1.7.0
Keywords: Cc: jmroot (Joshua Root), MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
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 (5)

comment:1 Changed 15 years ago by jmroot (Joshua Root)

Cc: jmr@… added
Component: portsbase
Milestone: Port BugsMacPorts 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 15 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Cc: mcalhoun@… added

Cc Me!

comment:3 Changed 15 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

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

comment:4 Changed 15 years ago by jmroot (Joshua Root)

Resolution: invalid
Status: newclosed

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

comment:5 Changed 14 years ago by jmroot (Joshua Root)

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