Ticket #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: | 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
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?
Note: See
TracTickets for help on using
tickets.


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