Not sure whether Deezer Framework is supporting arm64 or not? - deezer

Apple will required application to support both 32 and 64 bits architecture from February 2015. Deezer SDK for iOS doesn't include arm64 architecture.
So when will the Deezer Team update the SDK to compatible 64bit architecture?

As far as I can see Deezer iOS SDK version 0.9.0 (just passed from beta to official) is 64 bit.
Source: executed lipo -info libDeezer.a
and obtained
Architectures in the fat file: libDeezer.a are: armv7 armv7s i386 x86_64 arm64

Related

Unable to build for simulators while working for actual device

While facing no issue with actual iPhone device, my project does not build for simulators. I get this error (which occurres for many fies):
ld: warning: ignoring file /Users/stephanedeluca/Library/Developer/Xcode/DerivedData/AladdinWorkspace-afneoinpxpyfmofvnattjgylgxgo/Build/Products/Debug-iphonesimulator/GoogleDataTransport.o, building for iOS Simulator-arm64 but attempting to link with file built for unknown-x86_64
Which sounds like mixing ARM and 86 architectures.
My VALID_ARCHS is set to arm64 arm64e armv7 armv7s i386
I tried to remove VALID_ARCHS value as stated in the following answer without success:
Xcode 13 failing building with "entry point (_main) undefined. for architecture arm64"
I also tried to delete the DerivedData folder without success either.
[UPDATE] I forgot to mention that there is no more PODs in my workspace as I replaced them by the corresponding g Swift packages.
Any idea?
I found the solution: for some reasons, the architecture for macOS being ˋi386ˋ was not longer right, as I had to change it for x86_64.
Finally, my valid architectures are now:
arm64 arm64e armv7 armv7s x86_64

iPhone: how to make a fat library containing armv7s support?

I have external libraries for armv6, armv7, i386 and armv7s. When I try to put all together using lipo, I got an error message like so, saying armv7s isn't supported:
lipo: known architecture flags are: any little big ppc64 x86_64 ppc970-64 ppc i386 m68k hppa sparc m88k i860 veo arm ppc601 ppc603 ppc603e ppc603ev ppc604 ppc604e ppc750 ppc7400 ppc7450 ppc970 i486 i486SX pentium i586 pentpro i686 pentIIm3 pentIIm5 pentium4 m68030 m68040 hppa7100LC veo1 veo2 veo3 veo4 armv4t armv5 xscale armv6 armv7 armv7f armv7k
How to solve this problem?
You are possibly trying to use an older version of lipo that does not support armv7s. You should try that with the lipo version bundled with Xcode 4.5.
You would need the sources and compile it with armv7s support. Also, armv7 should work just fine on the armv7s devices too.

issue in integration of google analytics in ios static library

Hey i want to integrate google analytics in my ios static library, but when i'm putting libGoogleAnalytics.a from google analytics sdk for ios in my own static library i'm getting this error
Libtool build/Debug-iphonesimulator/libHY5Lib.a normal i386
cd /Hy5Canvas/Lib/HY5Lib
setenv MACOSX_DEPLOYMENT_TARGET 10.6
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/libtool -static -arch_only i386 -syslibroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk -L/Hy5Canvas/Lib/HY5Lib/build/Debug-iphonesimulator -L/Hy5Canvas/Lib/HY5Lib/HY5Lib -L/Hy5Canvas/Lib/HY5Lib -filelist /Hy5Canvas/Lib/HY5Lib/build/HY5Lib.build/Debug-iphonesimulator/HY5Lib.build/Objects-normal/i386/HY5Lib.LinkFileList -ObjC -framework Foundation -lGoogleAnalytics -o /Hy5Canvas/Lib/HY5Lib/build/Debug-iphonesimulator/libHY5Lib.a
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/libtool failed with exit code 1
Kindly help me out on this issue
Thanks,
The Google Analytics SDK for iOS isn't built for the armv7s architecture. This architecture just became available in Xcode 4.5 (released 9/12/2012), and is required for building for the new iPhone 5. Please release a new version of the SDK that includes this architecture.
Refer : Google Analytics Issue
Hope this helps :)

The Google Analytics SDK for iOS isn't built for the armv7s architecture while instaling app on iPhone

When i am trying to install my application on iPhone/iPad I am getting the following error. I am using new Xcode 4.5. What should I do to remove this error. I need to test my app on device.
file is universal (3 slices) but does not contain a(n) armv7s slice: /Users/nishijain/Desktop/Backup SecondPrism/mobile/apps/SecondPrism/SecondPrism/Google Analytics SDK/libGoogleAnalytics.a for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Thanks
You need to download the latest version of the SDK, according to the Changelog there is support for armv7s in Version 1.5.1.
If the error still happens try an older version of Xcode (probably Xcode 4.4.1) which has no clue of armv7s and throws no error.
EDIT:
This should work too:
In your Build Settings remove armv7s from Valid Architectures.

iOS simulator on mac is running i386 architecture, not armv7?

I've got some static libraries I've built for use on armv7 architectures. When I try to use them in a iOS project which I testrun on the iphone 5.0 simulator, I get errors telling me about undefined symbols for architecture i386 in my static libraries.
So I guess this means the iphone simulator wants libraries compiled for i386? What is the point of the simulator then - why dosn't it emulate armv7 architecture as well?
So the only way I can test my static libraries is to connect a physical iOS device and run it?
Or did I get it wrong?
So I guess this means the iphone simulator wants libraries compiled
for i386? What is the point of the simulator then - why dosn't it
emulate armv7 architecture as well?
You've answered your own question. It's a simulator, not an emulator. Therefore it is a Mac OSX program, running on i386 architecture. If you compile your static libraries for i386 as well you will be able to use them on the simulator.
I am not very sure but i386 is for Simulator and armv7 is for Devices that you have connected to your Machine.
You can actually compile the app through Xcode command line tool using i386 architecture (there is also a way to run it in Xcode UI by modifying the build settings).
xcodebuild -sdk iphonesimulator6.1 -arch i386 VALID_ARCHS="i386 armv7 armv7s" clean install
Run this command in the directory that you have the projectName.xcodeproj file.
Here's a break down of the script:
-sdk iphonesimulator6.1 // Build the app on iPhone simulator 6.1
-arch i386 // Build your app using i386 architecture
VALID_ARCHS="i386 armv7 armv7s" // Specify these architectures are valid
clean install // Clean all the builds then re-build and install
If you want to try simulators with i386 just go for =< iPhone 5.