Compiling for iOS using Xcode 11.0 Beta 2

asked 2019-06-19 19:06:58 -0500

3DTOPO gravatar image

Hello,

I am trying to take advantage of Xcode 11's new build iOS apps for the Mac feature.

In order to use OpenCV (which my app requires), the framework needs to be compiled with Xcode 11. Is there a version of the iOS framework compiled with Xcode 11 anywhere?

I selected the Xcode 11 beta 2 command line tools, and updated to CMake 3.14.5.

I tried building 3.4.6 using the platforms/ios/build_framework.py script using this command:

-- /usr/bin/python2.7 opencv-3.4.6/platforms/ios/build_framework.py  ios

It appears that every check is failing eg:

-- Performing Test HAVE_CXX_WNO_COMMENT
-- Performing Test HAVE_CXX_WNO_COMMENT - Failed

The CMakeOutput.log and CMakeError.log are at the bottom of this post.

Here is the error:

-- Configuring incomplete, errors occurred!
-- See also "/Users/jeshua/Downloads/opencv-build/ios/build/build-armv7-iphoneos/CMakeFiles/CMakeOutput.log".
-- See also "/Users/jeshua/Downloads/opencv-build/ios/build/build-armv7-iphoneos/CMakeFiles/CMakeError.log".
-- ============================================================
--ERROR: Command '['cmake', '-GXcode', '-DAPPLE_FRAMEWORK=ON', '-DCMAKE_INSTALL_PREFIX=install', '-DCMAKE_BUILD_TYPE=Release', '-DIOS_ARCH=armv7', '-DCMAKE_TOOLCHAIN_FILE=/Users/jeshua/Downloads/opencv-build/opencv-3.4.6/platforms/ios/cmake/Toolchains/Toolchain-iPhoneOS_Xcode.cmake', '-DCPU_BASELINE=DETECT', '/Users/jeshua/Downloads/opencv-build/opencv-3.4.6', '-DCMAKE_C_FLAGS=-fembed-bitcode', '-DCMAKE_CXX_FLAGS=-fembed-bitcode']' returned non-zero exit status 1
--============================================================
--Traceback (most recent call last):
--  File "opencv-3.4.6/platforms/ios/build_framework.py", line 117, in build
self._build(outdir)
--  File "opencv-3.4.6/platforms/ios/build_framework.py", line 109, in _build
self.buildOne(t[0], t[1], mainBD, cmake_flags)
--  File "opencv-3.4.6/platforms/ios/build_framework.py", line 196, in buildOne
execute(cmakecmd, cwd = builddir)
--  File "opencv-3.4.6/platforms/ios/build_framework.py", line 39, in execute
retcode = check_call(cmd, cwd = cwd)
--  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 190, in check_call
raise CalledProcessError(retcode, cmd)
--CalledProcessError: Command '['cmake', '-GXcode', '-DAPPLE_FRAMEWORK=ON', '-DCMAKE_INSTALL_PREFIX=install', '-DCMAKE_BUILD_TYPE=Release', '-DIOS_ARCH=armv7', '-DCMAKE_TOOLCHAIN_FILE=/Users/jeshua/Downloads/opencv-build/opencv-3.4.6/platforms/ios/cmake/Toolchains/Toolchain-iPhoneOS_Xcode.cmake', '-DCPU_BASELINE=DETECT', '/Users/jeshua/Downloads/opencv-build/opencv-3.4.6', '-DCMAKE_C_FLAGS=-fembed-bitcode', '-DCMAKE_CXX_FLAGS=-fembed-bitcode']' returned non-zero exit status 1

CMakeOutput.log: The target system is: iOS - 12.0 - armv7 The host system is: Darwin - 19.0.0 - x86_64 Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded. Compiler:
Build flags: -fembed-bitcode Id flags:

The output was: 0 2019-06-19 17:45:54.329 xcodebuild[55801:285282] [MT] PluginLoading: Required plug-in compatibility UUID 07BAA045-2DD3-489F-B232-D1D4F8B92D2D for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/SparkInspectorXcodePlugin.xcplugin' not present in DVTPlugInCompatibilityUUIDs note: Using new build system note: Planning build note: Constructing build description warning: Traditional headermap style is no longer supported; please migrate to using separate headermaps and set 'ALWAYS_SEARCH_USER_PATHS' to NO. CreateBuildDirectory /Users/jeshua/Downloads/opencv-build/ios/build/build-armv7-iphoneos/CMakeFiles/3.14.5/CompilerIdCXX (in target: CompilerIdCXX) cd /Users/jeshua/Downloads/opencv-build/ios/build/build-armv7-iphoneos/CMakeFiles/3.14.5/CompilerIdCXX builtin-create-build-directory /Users/jeshua/Downloads/opencv-build/ios/build/build-armv7-iphoneos/CMakeFiles/3.14.5/CompilerIdCXX

MkDir /Users/jeshua/Downloads/opencv-build/ios/build/build-armv7-iphoneos/CMakeFiles/3.14.5/CompilerIdCXX/CompilerIdCXX.xctest (in target: CompilerIdCXX ... (more)

edit retag flag offensive close merge delete