<div>i tried to bulid vtk for ios  and meet may errors blow,  i hope to konw wich step i've done wrong thans.</div><div><br></div><div><br></div><div><br></div><div><div>Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.</div><div>Compiler: /Applications/Xcode.app/Contents/Developer/usr/bin/gcc </div><div>Build flags: ;-miphoneos-version-min=10.3;-fvisibility=hidden;-fvisibility-inlines-hidden;-fembed-bitcode;-miphoneos-version-min=10.3;-fvisibility=hidden;-fvisibility-inlines-hidden;-fembed-bitcode</div><div>Id flags:  </div><div><br></div><div>The output was:</div><div>1</div><div>ld: building for iOS simulator, but linking against dylib built for OSX, file '/usr/lib/libSystem.dylib' for architecture x86_64</div><div>clang: error: linker command failed with exit code 1 (use -v to see invocation)</div><div><br></div><div><br></div><div>Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.</div><div>Compiler: /Applications/Xcode.app/Contents/Developer/usr/bin/g++ </div><div>Build flags: ;-miphoneos-version-min=10.3;-fvisibility=hidden;-fvisibility-inlines-hidden;-fembed-bitcode;-miphoneos-version-min=10.3;-fvisibility=hidden;-fvisibility-inlines-hidden;-fembed-bitcode</div><div>Id flags:  </div><div><br></div><div>The output was:</div><div>1</div><div>ld: building for iOS simulator, but linking against dylib built for OSX, file '/usr/lib/libSystem.dylib' for architecture x86_64</div><div>clang: error: linker command failed with exit code 1 (use -v to see invocation)</div><div><br></div><div><br></div><div>Performing Test VTK_UNDEFINED_SYMBOLS_ALLOWED failed with the following output:</div><div>Change Dir: /Users/cc/Documents/work/vtk/VTK-8.1.0-BIN/CMakeExternals/Build/vtk-ios-device-arm64/CMakeFiles/CMakeTmp</div><div><br></div><div>Run Build Command:"/usr/bin/make" "cmTC_1aa6f/fast"</div><div>/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_1aa6f.dir/build.make CMakeFiles/cmTC_1aa6f.dir/build</div><div>Building C object CMakeFiles/cmTC_1aa6f.dir/CheckSymbolExists.c.o</div><div>/Applications/Xcode.app/Contents/Developer/usr/bin/gcc   -miphoneos-version-min=10.3 -fvisibility=hidden -fvisibility-inlines-hidden -fembed-bitcode -miphoneos-version-min=10.3 -fvisibility=hidden -fvisibility-inlines-hidden -fembed-bitcode   -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk   -o CMakeFiles/cmTC_1aa6f.dir/CheckSymbolExists.c.o   -c /Users/cc/Documents/work/vtk/VTK-8.1.0-BIN/CMakeExternals/Build/vtk-ios-device-arm64/CMakeFiles/CMakeTmp/CheckSymbolExists.c</div><div>Linking C executable cmTC_1aa6f</div><div>/Applications/CMake.app/Contents/bin/cmake -E cmake_link_script CMakeFiles/cmTC_1aa6f.dir/link.txt --verbose=1</div><div>/Applications/Xcode.app/Contents/Developer/usr/bin/gcc  -miphoneos-version-min=10.3 -fvisibility=hidden -fvisibility-inlines-hidden -fembed-bitcode -miphoneos-version-min=10.3 -fvisibility=hidden -fvisibility-inlines-hidden -fembed-bitcode   -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk -Wl,-headerpad_max_install_names    CMakeFiles/cmTC_1aa6f.dir/CheckSymbolExists.c.o  -o cmTC_1aa6f </div><div>ld: warning: -headerpad_max_install_names is ignored when used with -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES)</div><div><br></div><div>Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.</div><div>Compiler: /Applications/Xcode.app/Contents/Developer/usr/bin/gcc </div><div>Build flags: ;-miphoneos-version-min=10.3;-fvisibility=hidden;-fvisibility-inlines-hidden;-fembed-bitcode;-miphoneos-version-min=10.3;-fvisibility=hidden;-fvisibility-inlines-hidden;-fembed-bitcode</div><div>Id flags:  </div><div><br></div><div>The output was:</div><div>1</div><div>ld: building for iOS simulator, but linking against dylib built for OSX, file '/usr/lib/libSystem.dylib' for architecture x86_64</div><div>clang: error: linker command failed with exit code 1 (use -v to see invocation)</div><div><br></div><div><br></div><div>Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.</div><div>Compiler: /Applications/Xcode.app/Contents/Developer/usr/bin/g++ </div><div>Build flags: ;-miphoneos-version-min=10.3;-fvisibility=hidden;-fvisibility-inlines-hidden;-fembed-bitcode;-miphoneos-version-min=10.3;-fvisibility=hidden;-fvisibility-inlines-hidden;-fembed-bitcode</div><div>Id flags:  </div><div><br></div><div>The output was:</div><div>1</div><div>ld: building for iOS simulator, but linking against dylib built for OSX, file '/usr/lib/libc++.dylib' for architecture x86_64</div><div>clang: error: linker command failed with exit code 1 (use -v to see invocation)</div><div><br></div><div><br></div><div>Performing Test VTK_UNDEFINED_SYMBOLS_ALLOWED failed with the following output:</div><div>Change Dir: /Users/cc/Documents/work/vtk/VTK-8.1.0-BIN/CMakeExternals/Build/vtk-ios-device-arm64/CMakeFiles/CMakeTmp</div><div><br></div><div>Run Build Command:"/usr/bin/make" "cmTC_54f13/fast"</div><div>/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_54f13.dir/build.make CMakeFiles/cmTC_54f13.dir/build</div><div>Building C object CMakeFiles/cmTC_54f13.dir/CheckSymbolExists.c.o</div><div>/Applications/Xcode.app/Contents/Developer/usr/bin/gcc   -miphoneos-version-min=10.3 -fvisibility=hidden -fvisibility-inlines-hidden -fembed-bitcode -miphoneos-version-min=10.3 -fvisibility=hidden -fvisibility-inlines-hidden -fembed-bitcode   -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk   -o CMakeFiles/cmTC_54f13.dir/CheckSymbolExists.c.o   -c /Users/cc/Documents/work/vtk/VTK-8.1.0-BIN/CMakeExternals/Build/vtk-ios-device-arm64/CMakeFiles/CMakeTmp/CheckSymbolExists.c</div><div>Linking C executable cmTC_54f13</div><div>/Applications/CMake.app/Contents/bin/cmake -E cmake_link_script CMakeFiles/cmTC_54f13.dir/link.txt --verbose=1</div><div>/Applications/Xcode.app/Contents/Developer/usr/bin/gcc  -miphoneos-version-min=10.3 -fvisibility=hidden -fvisibility-inlines-hidden -fembed-bitcode -miphoneos-version-min=10.3 -fvisibility=hidden -fvisibility-inlines-hidden -fembed-bitcode   -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk -Wl,-headerpad_max_install_names    CMakeFiles/cmTC_54f13.dir/CheckSymbolExists.c.o  -o cmTC_54f13 </div><div>ld: warning: -headerpad_max_install_names is ignored when used with -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES)</div><div><br></div><div>Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.</div><div>Compiler: /Applications/Xcode.app/Contents/Developer/usr/bin/gcc </div><div>Build flags: ;-miphoneos-version-min=10.3;-fvisibility=hidden;-fvisibility-inlines-hidden;-fembed-bitcode;-miphoneos-version-min=10.3;-fvisibility=hidden;-fvisibility-inlines-hidden;-fembed-bitcode</div><div>Id flags:  </div><div><br></div><div>The output was:</div><div>1</div><div>ld: building for iOS simulator, but linking against dylib built for OSX, file '/usr/lib/libSystem.dylib' for architecture x86_64</div><div>clang: error: linker command failed with exit code 1 (use -v to see invocation)</div><div><br></div><div><br></div><div>Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.</div><div>Compiler: /Applications/Xcode.app/Contents/Developer/usr/bin/g++ </div><div>Build flags: ;-miphoneos-version-min=10.3;-fvisibility=hidden;-fvisibility-inlines-hidden;-fembed-bitcode;-miphoneos-version-min=10.3;-fvisibility=hidden;-fvisibility-inlines-hidden;-fembed-bitcode</div><div>Id flags:  </div><div><br></div><div>The output was:</div><div>1</div><div>ld: building for iOS simulator, but linking against dylib built for OSX, file '/usr/lib/libSystem.dylib' for architecture x86_64</div><div>clang: error: linker command failed with exit code 1 (use -v to see invocation)</div><div><br></div><div><br></div><div>Performing Test VTK_UNDEFINED_SYMBOLS_ALLOWED failed with the following output:</div><div>Change Dir: /Users/cc/Documents/work/vtk/VTK-8.1.0-BIN/CMakeExternals/Build/vtk-ios-device-arm64/CMakeFiles/CMakeTmp</div><div><br></div><div>Run Build Command:"/usr/bin/make" "cmTC_3323b/fast"</div><div>/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_3323b.dir/build.make CMakeFiles/cmTC_3323b.dir/build</div><div>Building C object CMakeFiles/cmTC_3323b.dir/CheckSymbolExists.c.o</div><div>/Applications/Xcode.app/Contents/Developer/usr/bin/gcc   -miphoneos-version-min=10.3 -fvisibility=hidden -fvisibility-inlines-hidden -fembed-bitcode -miphoneos-version-min=10.3 -fvisibility=hidden -fvisibility-inlines-hidden -fembed-bitcode   -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk   -o CMakeFiles/cmTC_3323b.dir/CheckSymbolExists.c.o   -c /Users/cc/Documents/work/vtk/VTK-8.1.0-BIN/CMakeExternals/Build/vtk-ios-device-arm64/CMakeFiles/CMakeTmp/CheckSymbolExists.c</div><div>Linking C executable cmTC_3323b</div><div>/Applications/CMake.app/Contents/bin/cmake -E cmake_link_script CMakeFiles/cmTC_3323b.dir/link.txt --verbose=1</div><div>/Applications/Xcode.app/Contents/Developer/usr/bin/gcc  -miphoneos-version-min=10.3 -fvisibility=hidden -fvisibility-inlines-hidden -fembed-bitcode -miphoneos-version-min=10.3 -fvisibility=hidden -fvisibility-inlines-hidden -fembed-bitcode   -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk -Wl,-headerpad_max_install_names    CMakeFiles/cmTC_3323b.dir/CheckSymbolExists.c.o  -o cmTC_3323b </div><div>ld: warning: -headerpad_max_install_names is ignored when used with -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES)</div><div><br></div><div>Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.</div><div>Compiler: /Applications/Xcode.app/Contents/Developer/usr/bin/gcc </div><div>Build flags: ;-miphoneos-version-min=10.3;-fvisibility=hidden;-fvisibility-inlines-hidden;-fembed-bitcode;-miphoneos-version-min=10.3;-fvisibility=hidden;-fvisibility-inlines-hidden;-fembed-bitcode</div><div>Id flags:  </div><div><br></div><div>The output was:</div><div>1</div><div>ld: building for iOS simulator, but linking against dylib built for OSX, file '/usr/lib/libSystem.dylib' for architecture x86_64</div><div>clang: error: linker command failed with exit code 1 (use -v to see invocation)</div><div><br></div><div><br></div><div>Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.</div><div>Compiler: /Applications/Xcode.app/Contents/Developer/usr/bin/g++ </div><div>Build flags: ;-miphoneos-version-min=10.3;-fvisibility=hidden;-fvisibility-inlines-hidden;-fembed-bitcode;-miphoneos-version-min=10.3;-fvisibility=hidden;-fvisibility-inlines-hidden;-fembed-bitcode</div><div>Id flags:  </div><div><br></div><div>The output was:</div><div>1</div><div>ld: building for iOS simulator, but linking against dylib built for OSX, file '/usr/lib/libc++.dylib' for architecture x86_64</div><div>clang: error: linker command failed with exit code 1 (use -v to see invocation)</div><div><br></div><div><br></div><div>Performing Test VTK_UNDEFINED_SYMBOLS_ALLOWED failed with the following output:</div><div>Change Dir: /Users/cc/Documents/work/vtk/VTK-8.1.0-BIN/CMakeExternals/Build/vtk-ios-device-arm64/CMakeFiles/CMakeTmp</div><div><br></div><div>Run Build Command:"/usr/bin/make" "cmTC_1b878/fast"</div><div>/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_1b878.dir/build.make CMakeFiles/cmTC_1b878.dir/build</div><div>Building C object CMakeFiles/cmTC_1b878.dir/CheckSymbolExists.c.o</div><div>/Applications/Xcode.app/Contents/Developer/usr/bin/gcc   -miphoneos-version-min=10.3 -fvisibility=hidden -fvisibility-inlines-hidden -fembed-bitcode -miphoneos-version-min=10.3 -fvisibility=hidden -fvisibility-inlines-hidden -fembed-bitcode   -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk   -o CMakeFiles/cmTC_1b878.dir/CheckSymbolExists.c.o   -c /Users/cc/Documents/work/vtk/VTK-8.1.0-BIN/CMakeExternals/Build/vtk-ios-device-arm64/CMakeFiles/CMakeTmp/CheckSymbolExists.c</div><div>Linking C executable cmTC_1b878</div><div>/Applications/CMake.app/Contents/bin/cmake -E cmake_link_script CMakeFiles/cmTC_1b878.dir/link.txt --verbose=1</div><div>/Applications/Xcode.app/Contents/Developer/usr/bin/gcc  -miphoneos-version-min=10.3 -fvisibility=hidden -fvisibility-inlines-hidden -fembed-bitcode -miphoneos-version-min=10.3 -fvisibility=hidden -fvisibility-inlines-hidden -fembed-bitcode   -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk -Wl,-headerpad_max_install_names    CMakeFiles/cmTC_1b878.dir/CheckSymbolExists.c.o  -o cmTC_1b878 </div><div>ld: warning: -headerpad_max_install_names is ignored when used with -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES)</div><div><br></div></div>