last day (14 days later) » 

15:19
0
Q: Grabkit Lib error when build

N.V.BaoAnhI add Grabkit Lib into my project as guide at https://github.com/pierrotsmnrd/grabKit/wiki/How-to-install-GrabKit ThenUndefined symbols for architecture arm64: "_OBJC_CLASS_$_MBProgressHUD", referenced from: objc-class-ref in Util.o "_OBJC_CLASS_$_GRKConnectorsDispatcher", referenced f...

It looks kind of old, are you sure it contains a 64 bit version?
I resolved this problem by set Build For Active Architectures to YES.
Are you building for a 32 bit device? When it comes to submitting you're going to have problems. All new apps submitted now must support 64 bit.
I build on iphone 5 (64 bits)
The iPhone 5 is 32 bit. You are building for 32 bit, that's why it's now working. When you build for the app store you will need to build for 64 bit too if this is a new app. You will run in to issues. You should resolve this now, or find an alternative, before you get too far down the path.
15:19
ah ok, iPhone 5 is 32 bit. sorry. I only fix by: set Build For Active Architectures to YES in setting
If you disconnect your device and archive you will see the issue again. If you connect a 64 device you will the issue again. You haven't fixed the issue.
if so, how can I fix this bug to run app on device 64 bit? let me know. thanks!
Hey, Stack Overflow suggested this become a chat
You need see if you can compile the Grabkit library for 64 bit in its settings
Hi, are you committing the grab kit library yourself?
If you go to its build settings are you compiling it for 64 bt?
bit*
15:26
let I see
in build settings --> Valid Architecture have 3 values: arm64, armv7, armv7s
Can you see the compiled lib in your project?
yes
I just build app on iphone 6 simulator and there isn't any error
it builds success
Go to it's folder in terminal and type: lipo -info LIBRAYRY_NAME.a
Replacing LIBRARY_NAME
with the actual library name
What do you see?
"Go to it's folder" : which folder?
The folder that the library is in
15:30
ah ok
ITs-MacBook-Pro-2:Debug-iphoneos anhnvb$ lipo -info GrabKitLib.a
input file GrabKitLib.a is not a fat file
Non-fat file: GrabKitLib.a is architecture: armv7
Ok, so that's the issue
There is no 64 bit slice
So you can;t build a 64 bit project with non 64 bit slice
I don't know, I built on iphone 6 simulator success
In the build settings of grab kit you say it has Valid Architecture have 3 values: arm64, armv7, armv7s?
15:32
I don't have iphone 6 real device
yes
And what is Build active architectures on?
Debug set to Yes
Release set to NO
Turn both to no
still build success on iphone 5 (real device) and iphone 6 (simulator)
Did you turn Build For Active Architectures to NO for your project?
As that's how you "fixed" it if you recall
15:35
no
Try that
I I turn Active Architecture to No for my target project, will build fail with the error that I posted
It failed?
Since you have made these new changes?
15:36
no
So try it now
If I change No to Yes, will build success
There is a language barrier here
do you think it still has a problem?
Since making the above changes to the library, can you build your project when Build For Active Architectures is NO
If you are still unable to build, clean your project, remove the compiled libraries from the project and rebuild it
15:38
if Build For Active Architectures is NO --> build error
Ok, clean your project, remove the compiled libraries from the project and rebuild it
I did it before
Once they have rebuilt, run the terminal code again to see if it is a fat binary
and it didn't error
remove then add again --> must to config more things
:(
ok, thanks you for your help!
I have to go as I'm at work. The library needs to have a 64 bit slice, so there's your goal
Good luck!
15:41
ok, I will build on iPhone 6 real device tomorrow and will say you know the result
do you know GPUImage?

last day (14 days later) »