Armariris icon indicating copy to clipboard operation
Armariris copied to clipboard

Obj-C编译的时候,还是会出问题

Open Dendim0n opened this issue 7 years ago • 10 comments

以下是编译器错误: Assertion failed: (S1->getType() == S2->getType() && "Cannot create binary operator with two operands of differing type!"), function Create, file /Users/renqiming/Documents/iOS/Armariris/lib/IR/Instructions.cpp, line 2149.

这里是定位的错误位置: StringObfuscation.cpp, line 180.

Dendim0n avatar Jul 04 '17 10:07 Dendim0n

打印出的getType()->getTypeID()是一样的,但是getType()的值是不一样的。。。

Dendim0n avatar Jul 05 '17 02:07 Dendim0n

作者回复说他没有oc环境,hhhh

remi-chyan avatar Jul 11 '17 12:07 remi-chyan

我也遇到了同样的问题...楼上解决了吗? 强行mutate type后,虽然create的时候不会出问题,但是后面还是会出问题

PhD-5 avatar Jul 13 '17 02:07 PhD-5

为什么我在Xcode中编译的时候报的错误是:/Users/guo/Demo/DemoProject/DemoProject/User.h:9:9: fatal error: could not build module 'Foundation' #import <Foundation/Foundation.h>

3 errors generated.
Command /Users/guo/Work/Armariris/obf/build/bin/clang failed with exit code 1

GJ641102478 avatar Sep 15 '17 09:09 GJ641102478

@GJBlog 我们遇到的问题类似,请问有后来有解决方案吗?

Batxent avatar Jun 25 '18 11:06 Batxent

@GJBlog @Batxent 可以将 ollvm 升级到 5.0 ,可以解决这个问题,ollvm 5. 0 的地址是这个

https://github.com/Qrilee/llvm-obfuscator

AllocAndInit avatar Jul 05 '18 09:07 AllocAndInit

@AllocAndInit 我是 llvm 6 也有这个问题

joy0304 avatar Jul 11 '18 10:07 joy0304

@joy0304 我这边用的是 4.0 的版本,也是有这个问题,后来升级到 5.0 就好了,Xcode 版本为 9.4,你的Xcode 版本是多少

AllocAndInit avatar Jul 12 '18 09:07 AllocAndInit

9.4.1

joy0304 avatar Jul 19 '18 08:07 joy0304

@joy0304 这个我就不太清楚了,推荐使用这个 https://github.com/HikariObfuscator/Hikari ,功能比 ollvm 要强大

AllocAndInit avatar Jul 20 '18 09:07 AllocAndInit