Unable to archive with Xcode 11 GM - xcode

I am currently unable to archive my app using Xcode 11 GM, seed 1 and 2.
I want to upload my new iOS 13 build to App Store Connect but am unable to because of this issue.
The archive always gets stuck on task number 911 when archiving, this is when it says it is building Realm or Charts. The same happens when building using fastlane gym except it gets stuck much earlier when compiling nanopb-vers.m
So far I have tried suggestions from people facing a similar issue with no luck:
Changing compilation mode
Changing optimisation level
Adding a custom building setting (LD_VERIFY_BITCODE = NO)
Using the legacy build system
Using fastlane
Removing armv7 from supported architectures
Setting debug information format to just DWARF
Does anybody know how to fix this issue?

Related

React Native with Xcode 13 throws: Error Analyzing App Version

I'm having problems uploading my app version since I upgraded Xcode to 13.3.1
The compilation succeeds as always, but when I'm doing the process of uploading and distributing to the App Store I get this screen with no explanation:
I have cleared the cache, clean the build, and changed the node version from 14 to 16 and I haven't been able to make it work.
Thanks
After many attempts, I solved this by setting the Team to NONE and then back to the signing team.
This is under the Signing tab.

Flutter project stopped working randomly after a couple months

I have written over 9,000 lines of code in my Flutter Application, and all of the sudden a couple months later (I tested it months before and it was fine) it stopped with this message:
error: /Users/asheralbrecht/Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.12+4/ios/Classes/FLTSharedPreferencesPlugin.h: No such file or directory (in target 'shared_preferences' from project 'Pods')
So I ran flutter clean and flutter build ios and then Xcode said:
Uncategorized:
Command PhaseScriptExecution failed with a nonzero exit code
With about 30 errors.
I don't know what is going on, but I am stressing that I am going to loose all my hard work and effort on this app.
Do any of you know how to fix these errors?
Is there any more info I need to give or explain?
PS: I am also using Cocoa Pods for my Firebase Database.
Some sources I used:
Shared Preferences error in Flutter - iOS on Mac
Thanks in advance!

Missing entitlement - 'UIBackgroundModes' value 'workout-processing' without the required entitlement 'com.apple.developer.healthkit'

I have released my app a couple of times and had the process under control until most recently when I updated from XCode 9 to XCode 10 due to a 3rd party lib requirement.
Everything seems fine when I compile and run on the emulator; but, when I come to the "Validate" (Archive) the app prior to uploading to the app store I am getting an error.
My Setup:
MacOS 10.14.2 (Mojave)
Using XCode 10.1 (10B61)
Error message:
Missing entitlement. watchOS extension
'XXX.app/Watch/aw-xxx.app/PlugIns/aw-xxx Extension.appex' uses
'UIBackgroundModes' value 'workout-processing' without the required
entitlement 'com.apple.developer.healthkit' signed into the bundle.
Watch Extension Capabilities:
The app is built using cordova-8.1.1 and cordova-ios-4.5.5
cordova build ios --buildFlag='-UseModernBuildSystem=0'
In addition to that, the project on XCode 10 has been set to 'Legacy Build System' on File -> Project Settings.
Lastly, the 'aw-xxx Extension.entitlements' has the 'HealthKit' key value set to 'YES' under the 'aw-xxx Extension' folder as one could expect.
Any help or pointers would be much appreciated.
I'm happy to provide more info, logs, etc as well, thanks!
After following the comment below I managed to get my app to validate once again on XCode 10:
Hi #guikeller Just wondering if it is related. I had similar issue while doing a ionic cordova app release. I figured the
com.apple.developer.healthkit
is missing in my platforms/ios/myApp/Entitlements-Release.plist. It does exist in Entitlements-Debug.plist. All I did is copied the key from the debug file to release and app store accepted it.
Source: https://github.com/apache/cordova-ios/issues/475#issuecomment-450174628
In addition to that, I was also able to submit my app into the app store.

Archive failed - no reason - Xcode 6 with Screen shot of archictures

Im trying to archive my iOS application but it fails during archiving, there is no hint to what it may be. Any way to find out?
Ive provided an image of the build settings incase the issue lies here:
Update
App builds perfectly on a device. (iPhone 5s and 6)
I managed to fix the issue. I originally thought it was an issue with the architecture, so I removed arm64 from valid architectures. This then allowed me to archive the app.
However I decided to do one last build on a device before submitting it to the app store and I noticed it would not build (would not build on an iPhone 5s running iOS8.3).
This flagged an error when trying to build, I had:
#ifndef DEBUG
SEC_IS_BEING_DEBUGGED_RETURN_NIL();
#endif
in my code, which i felt was needed in order to deter debugging by an unauthorised individual. I removed this line, added back 'arm64' into 'Valid architectures' and it archived without any issue (it also ran on the device again). So for some reason, 'arm64' allowed the above code when running on a device I believe, but would not archive.
Hope this saves someone too :)

XCode 3 - core compile errors with clean installation and iPhone 4 SDK

This is a copy of another question from AskDifferent, since I'm being adviced to put this question here instead.
This has been asked once elsewhere but nobody could give the guy an answer... and I Google seem to only know that single occurrence of the problem!
So I'm the second guy in history to experience this and my problem is:
I'm running XCode 3.2.3 on Snow Leopard 10.6.4 (I think, it's the minimal required OS version for this XCode version) with iOS SDK 4.0.2
I create a new empty Cordoba (PhoneGap) project
I set up my Base SDK in Project Settings to iPhone Simulator 4.0 per instructions on PhoneGap's website
I don't change any other setting at all
when I hit "Build and Run" button, XCode starts compilation and finished with 3 errors and 10 warnings
Now, I don't mind those warning, but I cannot successfully compile because of those 3 errors now. No idea how to fix this, I'm totally new to PhoneGap or Mac OS for that matter.
The errors I get are:
/Users/[name]/Documents/CordovaLib/Classes/CDVLocation.m:123:32 /Users/[name]/Documents/CordovaLib/Classes/CDVLocation.m:123:32: error: use of undeclared identifier 'kCLAuthorizationStatusAuthorized'
/Users/[name]/Documents/CordovaLib/Classes/CDVCapture.m:783:70 /Users/[name]/Documents/CordovaLib/Classes/CDVCapture.m:783:70: error: use of undeclared identifier 'NSEC_PER_MSEC'
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang failed with exit code 1
I would appreciate any advice from you guys, as I'm completely at a dead-end here.
CLAuthorizationStatus, and thus kCLAuthorizationStatusAuthorized are only available in 4.2 and later.
Check this for more info: https://developer.apple.com/library/ios/#documentation/CoreLocation/Reference/CLLocationManager_Class/CLLocationManager/CLLocationManager.html#//apple_ref/c/econst/kCLAuthorizationStatusAuthorized
As to your other error, google pulls up this: How to resolve Phonegap error while Building the app

Resources