Fabric + Crashlytics for iOS - ios

Recently I try to add Fabric & Crashlytics to my projects, but I got one link issue.
My base SDK is iOS7.0 and deployment target is 7.0 too, try to use the Fabric app for mac or cocoapods to add these frameworks, but always got error msg like this:
Anyone can assist?
Thanks a lot.

Add the run script provided by fabric to you. The follwing screenshot demonstrates where to add the runscript.

Reply from Mattie, Twitter Staff
Yes. It turns out that Crashlytics does not support building with a base SDK older than "latest" for any given Xcode release. It's extremely hard for us to maintain build compatibility with older SDKs, even if we can maintain runtime compatibility.
So I need change the base SDK to latest one and revamp my codes..

Related

AppTrackingTransparency module not found in Xcode 11.6

I am trying to compile my Flutter project in Xcode 11.6, however it shows me the error -
ld: framework not found AppTrackingTransparency
All my code seems to be working fine, however after research I found out that this is something that is required for iOS 14, but if I download Xcode 12 I won't be able to publish my app in release mode as Apple doesn't accept builds from beta versions.
You either wait for the Xcode 12 official release or copy the AppTrackingTransparency.framework into the Xcode 11.6's frameworks folder
What worked for me was that I was using a pod that was only supported for Xcode 12 that contained the AppTrackingTransparency framework as it is now a requirement if you are integrating any API that is an ad network, so check if your pods have gotten updated automatically and downgrade it if you want it to work.
If you need help implementing the 'AppTrackingTransparency', you can refer to the following question:-
No such module 'AppTrackingTransparency' Error
Hope this solves your problem:)

How to change Xcode sdk compiling version

I have tried to build an app through to the AppStore but they rejected it due to the app using sdk 11.4. Stating that it needs to use the updated version of 12.1.
The current Xcode I have installed is 10.1 or 10B61 which is the latest without making use of a Beta. I have searched through the settings trying to find how to update the sdk as well as maybe target that newer base SDK.
Things I have tried:
Searched for newer Xcode (stated above)
Searched through settings for the base SDK version number so it can be changed.
Went to AppStore to find any updates for Xcode (there were none)
Tried googling how to change/update the sdk, but none give an explicit answer on where this can be done. It merely states that Xcode 10 should come with a base SDK of 12.1, but that does not seem to be the case here.
Please note that this is not to target the minimum version. I know where that is and it is set accordingly. No issues there.
EDIT:
I have run $> xcodebuild -showsdks and it shows that sdk 12.1 is the sdk that is installed.
However, it seems that it is somehow overriding it to 11.4 when it is trying to build to AppStore. Not sure why.
The issue did not seem to be with Xcode itself but rather Bitrise that we were using to build and publish the app to the AppStore. Once the correct stack was selected for the building/publishing, it managed to build, however, we then found a different issue.
Using Xcode 10.1 we built the app in iOS 12.1, however, Bitrise seems to have an issue with React-Native third-party dependencies when it comes to Xcode 10.0+. It just doesn't seem to install them correctly and throws an error while compiling. (dependency: double-conversion)
The only advice we could find online was to downgrade xCode to 9.4 and then manually add the Device Support files (from targeted SDK to 12.1) to the app. This is something we don't want to do.
We are waiting for Bitrise to sort their stuff out, but in the meantime, we are looking into building straight from Xcode or Fastlane.

need older version of Google Mobile Ads SDK iOS

I am in the need of older version of Google Mobile Ads SDK iOS may be 7.7.0 or older. Please share if anyone has it. I need to work on Xcode 6.3.2 and iOS 8.3. but latest version needs iOS 9 or later.
Thanks.
In case anyone is looking for the answer to this question, as I was today... Here is a solution that incorporates Nika's fine answer and gives you a standalone solution for closed-source frameworks like these.
The Cocoapods specs need to be public and if you go to where those specs are published, in this case: https://github.com/CocoaPods/Specs/tree/master/Specs/5/9/a/Google-Mobile-Ads-SDK
You'll find a list of all the versions of Google Mobile Ads published via Cocoapods.
Each spec contains a download link, so the spec for version 7.59.0 of the SDK / framework shows that link to be https://dl.google.com/dl/cpdc/de07064cf20bb7a6/Google-Mobile-Ads-SDK-7.59.0.tar.gz
You can solve your problem yourself mate:
Step 1: learn cocoapods. Cocoapods are used to integrate 3rd party libraries. It usually stores many many versions of the same libraries. There are plenty of tutorials on this under 10 minutes on youtube.
Step 2: import the version of google mobile ads library you need like this pod 'GoogleMobileAds', '~> 7.7'

Archive validation failed with errors during app store distribution process

I have been trying to send my application to apple for submission and it is my first experience about it. I have searched the errors and applied all suggested solutions. However none of the solutions didn't work for me. I got the error below.
I set the ios deployment target as ios 7.0 and later versions for both of the project target and Alamofire framework. Also, my Xcode version is 6.1.1 . However, I could not understand that why not working.
Could you help me please ?
Thank you for your answers
Best regards
Unfortunately, iOS 7 does not support frameworks. Here is some additional information about it. The known workaround is to add Alamofire to your project by dragging the Alamofire.swift file directly into your project.
A good way to track this type of usage in your project is to use Git submodules. You could also download a version and copy the file into your project, but then it gets more difficult to track what version you have compiled into your project.
This will build Alamofire into your project as though it was just another Swift file associated with your project.
This is also why most Swift CocoaPods are iOS 8 only.

iphone grabkit library trouble in xcode

I am developing one iOS application in which I wan to integrate grabkit (excellent ) library.
I have tried to use in xocode 6 with 64 bit architecture but it shows me lots of error.
I have followed below instructions but still getting error
https://github.com/pierrotsmnrd/grabKit
Can you please advice me.
Thanks in advance
It seems like, You forget to add some frameworks, which mentioned on install and configure process.
Follow this two links,
install : github.com/pierrotsmnrd/grabKit/wiki/How-to-install-GrabKit
configure : github.com/pierrotsmnrd/grabKit/wiki/How-to-configure-GrabKit
Grabkit was build in 32bit XCODE..and now days as per apple rules iOS application must be build in 64bits else application get rejected. If we are trying to setup 32bit grabkit project in 64bits xcode then it got error. So now days we dont have to use Grabkit in any other project till the compatible version will be launch because of compatibility issue.

Resources