Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build for iOS 报错 #82

Closed
goodcyg opened this issue Feb 24, 2020 · 1 comment
Closed

Build for iOS 报错 #82

goodcyg opened this issue Feb 24, 2020 · 1 comment

Comments

@goodcyg
Copy link

goodcyg commented Feb 24, 2020

Build for iOS
Manual build for iOS[ARM/ARM64]
cd Dobby && mkdir build_for_ios_arm64 && cd build_for_ios_arm64

cmake ..
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_TOOLCHAIN_FILE=cmake/ios.toolchain.cmake
-DPLATFORM=OS64
-DARCHS=arm64
-DENABLE_BITCODE=1
-DENABLE_ARC=0
-DENABLE_VISIBILITY=1
-DDEPLOYMENT_TARGET=9.3
-DCMAKE_SYSTEM_PROCESSOR=aarch64
-DDynamicBinaryInstrument=ON -DNearBranchTrampoline=ON
-DPlugin.FindSymbol=ON -DPlugin.HideLibrary=ON -DPlugin.ObjectiveC=ON

make -j4

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
Build flags: -miphoneos-version-min=11.0;-fembed-bitcode;-fobjc-abi-version=2;-fno-objc-arc;-miphoneos-version-min=11.0;-fembed-bitcode;-fobjc-abi-version=2;-fno-objc-arc;
Id flags:

The output was:
1
ld: building for iOS Simulator simulator, but linking against dylib built for macOS/iOSMac, file '/usr/lib/libSystem.dylib' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
Build flags: -miphoneos-version-min=11.0;-fembed-bitcode;;-fvisibility-inlines-hidden;-fobjc-abi-version=2;-fno-objc-arc;-miphoneos-version-min=11.0;-fembed-bitcode;;-fvisibility-inlines-hidden;-fobjc-abi-version=2;-fno-objc-arc;
Id flags:

The output was:
1
ld: building for iOS Simulator simulator, but linking against dylib built for macOS/iOSMac, file '/usr/lib/libc++.dylib' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

CMake Error at CMakeLists.txt:356 (if):
if given arguments:

"Plugin.Gollum" "AND" "GENERATE_FRAMEWORK" "AND"

Unknown arguments specified

@jmpews
Copy link
Owner

jmpews commented Aug 19, 2020

fixed

@jmpews jmpews closed this as completed Aug 19, 2020
@Lamfi Lamfi mentioned this issue Dec 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants