visp icon indicating copy to clipboard operation
visp copied to clipboard

Build fails for iOS framework

Open fspindle opened this issue 2 years ago • 0 comments

System information:

  • OS name: macOS
  • OS release: 12.6
  • OS version: 21G115
  • CPU name: Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz
  • Xcode version: 14.0.1

To reproduce the error:

$ python ../visp/platforms/ios/build_framework.py ios
warning: None of the architectures in ARCHS (armv7) are valid. Consider setting ARCHS to $(ARCHS_STANDARD) or updating it to include at least one value from VALID_ARCHS (arm64, arm64e, armv7, armv7s). (in target 'visp_gui' from project 'VISP')
/Users/fspindle/soft/visp/visp_ws/test-pr/visp-fspindle/visp-ios-build/ios/build/build-armv7-iphoneos/VISP.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.0.99. (in target 'ZERO_CHECK' from project 'VISP')
error: The armv7 architecture is deprecated. You should update your ARCHS build setting to remove the armv7 architecture. (in target 'ZERO_CHECK' from project 'VISP')
note: Run script build phase 'Generate CMakeFiles/ZERO_CHECK' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'ZERO_CHECK' from project 'VISP')
** BUILD FAILED **

============================================================
ERROR: Command '[u'xcodebuild', u'IPHONEOS_DEPLOYMENT_TARGET=9.0', u'ARCHS=armv7', u'-sdk', u'iphoneos', u'-configuration', u'Release', u'-parallelizeTargets', u'-jobs', '12', u'-target', u'ALL_BUILD', u'build']' returned non-zero exit status 65
============================================================
Traceback (most recent call last):
  File "../visp/platforms/ios/build_framework.py", line 138, in build
    self._build(outdir)
  File "../visp/platforms/ios/build_framework.py", line 128, in _build
    self.buildOne(target[0], target[1], main_build_dir, cmake_flags)
  File "../visp/platforms/ios/build_framework.py", line 267, in buildOne
    execute(buildcmd + ["-target", "ALL_BUILD", "build"], cwd = builddir)
  File "/Users/fspindle/soft/visp/visp_ws/test-pr/visp-fspindle/visp/platforms/apple/vp_build_utils.py", line 13, in execute
    retcode = check_call(cmd, cwd = cwd)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 190, in check_call
    raise CalledProcessError(retcode, cmd)
CalledProcessError: Command '[u'xcodebuild', u'IPHONEOS_DEPLOYMENT_TARGET=9.0', u'ARCHS=armv7', u'-sdk', u'iphoneos', u'-configuration', u'Release', u'-parallelizeTargets', u'-jobs', '12', u'-target', u'ALL_BUILD', u'build']' returned non-zero exit status 65

Note:

fspindle avatar Oct 06 '22 12:10 fspindle