We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21e58c1 commit b87c189Copy full SHA for b87c189
plugins/plugin_compile/project_compile.py
@@ -888,9 +888,8 @@ def build(self, platform):
888
# iOS need to generate Xcode project file first
889
if platform == 'ios':
890
engine_dir = self.get_engine_dir()
891
- ios_cmake_toolchain_file = os.path.join(engine_dir, 'cmake/ios.toolchain.cmake')
892
- self._run_cmd('cmake %s -GXcode -DCMAKE_TOOLCHAIN_FILE=%s' %
893
- ( os.path.relpath(cmakefile_dir, build_dir), ios_cmake_toolchain_file) )
+ self._run_cmd('cmake %s -GXcode -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_SYSROOT=iphoneos' %
+ ( os.path.relpath(cmakefile_dir, build_dir) ) )
894
elif platform == 'mac':
895
self._run_cmd('cmake -GXcode %s' % os.path.relpath(cmakefile_dir, build_dir))
896
else:
0 commit comments