Here are the main issues regarding the security compiler.

0. Common Error Code

error code error description
101 please stop debugging
102 please do not run inside the virtual machine
103 the file of KiwiCompiler was tampered
201 license.key file does not match this computer
202 license.key file is missing
203 authorization time expired
204 [KiwiCompiler] no permission to write files xx
205 [KiwiCompiler] unknown error
211 [clang] no permission to write files xx
212 [clang] unknown error

1. Bitcode Issue

Problem Description:does not contain bitcode. You must rebuild it with bitcode enabled

Repair suggestion:Close Bitcode in Build Options.

2. Xcode Default Path Problem

Problem Description:error: can't exec '/Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library/Xcode/Plug-ins/KiwiSecSet.xcplugin/Contents/clang' (No such file or directory

Repair suggestion:Please do not modify the default path of /Applications/Xcode.app, otherwise the security compiler cannot be found.

3. Clang Permission Problem

Problem Description:KiwiSecSet.xcplugin/Contents/kiwisec/clang: Permission denied or KiwiSecSet.xcplugin/Contents/clang: Permission denied or XcodeDefault.xctoolchain/usr/bin/clang: Permission denied

Repair suggestion:Executed on the command linechmod 744 /Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library/Xcode/Plug-ins/KiwiSecSet.xcplugin/Contents/kiwisec/clangAdd execution permission [other files operate similarly], as shown below 1-3

4. -kce-xx Unknown Parameter

Problem Description:clang: error: unknown argument: '-kce-fla=2' clang: error: unknown argument: '-kce-bcf=50' Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1

Repair suggestion:This parameter is only recognized by the KiwiSec security compiler. When switching to the default compiler, please delete this parameter; some pods will be defined in the config using the default clang when imported into projects. The solution is to modify the default clang into the KiwiSec security compiler clang.

7. Certificate Problem

Problem Description:Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 11.2'

Repair suggestion:Please select the correct Team under General > Signing

8. Unable to Debug Program

Problem Description:Unable to perform breakpoint debugging analysis on the program

Repair suggestion:**Repair suggestion: **The KiwiSec compiler compiles for the release version and refuses to debug. For debugging, please switch to the default compiler

Problem Description:C++ link problem occurs at compile time, as shown below 1-9

Repair suggestion:Please add -lstdc++ under Build Settings > Linking > Other Linker Flags, as shown below 1-91

10. Clang++ Errors

Problem Description:clang++ emitted errors but did not return a nonzero exit code to indicate failure, as shown below 1-10

Repair suggestion:Please add libncurses.tbd、libz.tbd、libc++.tbd、libstdc++.tbd under Build Phases > Linking Binary With Libraries, as shown below 1-101

Problem Description:Static library link exception, as shown below 1-4

Repair suggestion:Link the file /Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library/Xcode/Plug-ins/KiwiSecSet.xcplugin/Contents/kiwisec/clang-lib/libclangrt.all.a文to the project, as shown below 1-5

12. Duplicate Symbol in Unity Project

Problem Description:Similar error log appearsduplicate symbol __Z18RegisterAllClassesv in: /Users/supergiu/Library/Developer/Xcode/DerivedData/Unity-iPhone-gdqoayxcyxlmfpbkxurptjywyslb/Build/Intermediates/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/armv7/RegisterMonoModules.o

Repair suggestion:Search for the duplicate symbol in the log, such as searching for the RegisterAllClasses symbol. The search results find that the RegisterAllClasses related function is redefined in RegisterMonModules.cpp, which means that the function is redefined. Please comment out the function and the program will compile successfully. 1-11

13. The Package is too Large after Unity Project is Compiled

Problem Description:After the Unity project is compiled, the package is too large to meet the online requirements. Repair suggestion:Filter the code of the Unity project's own library to reduce the size of the package. Go to the xxx/Classes/Native directory via the command line and execute find .|grep "\.cpp" |grep -v "Bulk_Assembly-CSharp"|xargs -I {} basename {} |awk '{printf "%s," , $0}' > /tmp/filter.txt can export the cpp file in the directory to txt, and then use the -kce-filter parameter in OTHER_CFLAGS to filter files that do not need to be hardened [in case of crash, you can also Filter], such as -kce-filter=xxx.cpp,xxx2.cpp reference:


14. Swift Project Error

Problem Description:

XXX-Swift.h  lost
/Users/xxx/Desktop/\uc0\u26426 \u29483 \u39033 \u30446 /DianDang/DianDang/Lib/Cafe/Controller/DDCoffeeMeCotacee.m:15:9: fatal error: 'DianDang-Swift.h' file not found
#import "DianDang-Swift.h"
1 error generated.

Repair suggestion:This file is an intermediate file. It will exist in the directory after the original compiler is compiled. For example, my local test is located at ~/Library/Developer/Xcode/DerivedData/DianDang-aupilsckaiyeusfmepnuhlbdidkq/Build/Intermediates.noindex/DianDang.build/Debug- Iphoneos/DianDang.build/DerivedSources/DianDang-Swift.h, copy it out and put it in the project, you can find it.

If the link error continues to occur, as shown below, add the KiwiSecSet/Contents/kiwisec/clang-lib/libclangrt.all.a static library to the project.


15. Compile Exception

Problem Description:Unsupported compiler 'com.apple.compilers.llvm.clang.1_1' selected for architecture 'x86_64', as shown below 1-12

Repair suggestion:Please select the correct compiler in Build Settings > Build Options > Compiler for C/C++/Objective-C

16. Compiler Stuck

Problem Description:The compiler stucks when compiles the project

Repair suggestion:The first step is to check the log information to check whether the project is too large and needs to be compiled for a long time. If the log is continuously output, it indicates that it is not stuck. As shown below; if a file is compiled, please recompile after interruption. 1-13

17. File Compilation Failed

Problem Description:Similar quesiton appears ../Unity-iPhone.build/Objects-normal/armv7/Il2CppAttributes.bc.ll.o" LLVM ERROR: Relocation out of range

Repair suggestion:The file should not be encrypted and can filtered out by setting -kce-filter=Il2CppAttributes.cpp in OTHER_CFLAGS.

18. App Installation Failed

Problem Description:Compiled successfully but installation failed

Repair suggestion:You can send the crash log to the docking technician. The log is the system log. For the acquisition method, refer to: https://blog.csdn.net/jiajiayouba/article/details/44936107

19. View Log Information & Export Logs

Problem Description:*Unable to solve the problem when compiling error occurs

Repair suggestion:Please view the compilation log information as shown below, and send the screenshot [or export the complete error log] to the docking technician. View Log Information 1-7 Exprot Log Information 1-10

results matching ""

    No results matching ""