Problems building for iOS with Xcode 4.3 (Bug #1626)


Added by Adrian Mannella about 13 years ago. Updated almost 13 years ago.


Status:Done Start date:2012-02-27
Priority:Normal Due date:
Assignee:Andrey Kamaev % Done:

0%

Category:build/install
Target version:2.4.0
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

Description

Using source for v2.3.1.

Followed the instructions in iOS/README file. At the xcodebuild step, received the following error:

Error: No developer directory found at /Developer. Run /usr/bin/xcode-select to update the developer directory path.
Administrators-MacBook-Pro:opencv adrianm$ sudo xcode-select -swtich /Applications/Xcode.app/Contents/Developer

Xcode 4.3 uses a single app bundle, as opposed to the Developer directory in previous versions. Found this on the Internet:

sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer

This allowed the xcodebuild command to run. Then I got the following error:

@Build settings from command line:
SDKROOT = iphoneos5.0

xcodebuild: error: Unable to read project 'OpenCV.xcode'.
Reason: Project file 'OpenCV' was written by an unsupported Xcode version (39)@

Could the files be updated to work with Xocde 4.3? Thanks.


Associated revisions

Revision 97dfd650
Added by Andrey Pavlenko over 11 years ago

Merge pull request #1626 from ilya-lavrenov:ocl_filters

History

Updated by Kirill Kornyakov about 13 years ago

  • Priority changed from Blocker to High
  • Category set to ios

Updated by Miguel Batista almost 13 years ago

CMake is generating the wrong version of XCode projects because it can't figure out the installed version of XCode.
Bottom line, it's a bug in CMake; you can work around it by doing this:

sudo mkdir /Developer/Applications/Xcode.app/Contents/
sudo cp /Applications/Xcode.app/Contents/version.plist /Developer/Applications/Xcode.app/Contents/version.plist

More info here: http://www.cmake.org/Bug/view.php?id=12621#c28613

Updated by Alexander Shishkov almost 13 years ago

  • Tracker changed from Bug to Patch
  • Target version deleted ()
  • Category changed from ios to documentation

Updated by Alexander Shishkov almost 13 years ago

  • Priority changed from High to Low

Updated by Alexander Shishkov almost 13 years ago

  • Category changed from documentation to ios

Updated by Alexander Shishkov almost 13 years ago

  • Priority changed from Low to Normal

Updated by Alexander Shishkov almost 13 years ago

  • Target version deleted ()

Updated by Andrey Kamaev almost 13 years ago

Thanks for reporting the issue!

CMake 2.8.8 with Xcode 4.3 support is out, so I'm closing this ticket.
Since r8116 we request cmake 2.8.8 for Xcode version 4.3 and newer.

  • Tracker changed from Patch to Bug
  • Status changed from Open to Done
  • Target version set to 2.4.0
  • Category changed from ios to build/install
  • Assignee set to Andrey Kamaev

Also available in: Atom PDF