AWS Framework and XCode Conundrum [duplicate] - xcode

This question already has answers here:
Submit to App Store issues: Unsupported Architecture x86
(17 answers)
Closed 6 years ago.
I am trying to upload an XCode project to App Store and running into frameworks related issues. The project has AWSCore framework, which rather than cocoa pods route, has been manually downloaded and added to the project. It also has been added to both the 'Build Phases' settings of target - 'Embedded Binaries' and 'Linked Frameworks and Libraries'. These two setting combined however, might be causing the below mentioned issues while uploading the project to App Store:
ERROR ITMS-90087: "Unsupported Architectures. The executable for /Frameworks/AWSCore.framework contains unsupported architectures '[x86_64, i386]’."
ERROR ITMS-90209: "Invalid Segment Alignment. /Frameworks/AWSCore.framework/AWSCore' does not have proper segment alignment. Try rebuilding the app with the latest Xcode version."
I do have the latest version of XCode, so not sure why I am getting the second error message. Some StackOverflow posts suggested removing the framework from 'Embedded Binaries' section of 'Build Phases', but that's introducing the following run time error:
dyld: Library not loaded: #rpath/AWSCore.framework/AWSCore Referenced from: /var/containers/Bundle/Application/
This seems to be quite a conundrum. Wondering if anyone else has run into same issue and what has been the fix? Thanks!

As pointed out by William GP in the comments to the question, my question was similar to the one asked here: Submit to App Store issues: Unsupported Architecture x86.
Please see the following link for the perfectly well described analysis of the problem and also detailed solution by Daniel Kennett: http://ikennd.ac/blog/2015/02/stripping-unwanted-architectures-from-dynamic-libraries-in-xcode/

Related

XCode 7.3 - Workspace usage [duplicate]

This question already has answers here:
Xcode Project vs. Xcode Workspace - Differences
(5 answers)
Closed 6 years ago.
I have been trying to understand xcode..
What is a Workspace?
Is there something that can't be done with a project that needs a Workspace?
Apple has a page explaining what Workspace is.
In short, it's used to group several projects together to build an app. If you use CocoaPods for example, the pods are referenced as targets from another project. A workspace helps tie your code and those pods together to make an app.
You use a workspace to share a code library amongst multiple projects.
Watch https://youtu.be/LNU6L2pnq0k and it should help you get a better idea of why/how they are used.

local libraries in xamarin not updating [duplicate]

This question already has answers here:
Xamarin Forms Android Error: Please install package 'Android Support Library'
(13 answers)
Closed 6 years ago.
I've developed a project in windows,later i loaded into my mac mini it was running fine,then i've seen package updates available ,when updated i got 39 errors saying
/Users/xxxx/Projects/TimeSheet/TimeSheet: Error XA5209: Unzipping failed. Please download https://dl-ssl.google.com/android/repository/android_m2repository_r29.zip and extract it to the /Users/xxxxx/.local/share/Xamarin/Android.Support.v7.RecyclerView/23.3.0.0/content directory. (XA5209) (TimeSheet)
when i checked this directory ""/Users/xxxxx/.local/share/Xamarin/Android.Support.v7.RecyclerView/23.3.0.0/ """" there was nothing updated in 23.3.0.0 Folder in mac.is there any restriction is there guys? please help me
Thank you
You don't want to download the latest Android support libraries since Xamarin uses an older version. They take longer to update since they need to do the translation.
The current version that is compatible is 23.0.1.3.
See the Troubleshooting guide for more information.

Mac App Store Upload Fail: Validation Error (SFML)

I'm working on a SFML App in Xcode 7.2, and I'm trying to upload my project build to the Mac App Store, and I'm getting the following error:
An error occurred during validation
Couldn't find platform family in Info.plist CFBundleSupportedPlatforms or Mach-O LC_VERSION_MIN for A
I've tried, among other things, adding a new entry to my Info.plist for CFBundleSupportedPlatforms with an entry for OSX. I've tried changing dylibs vs frameworks, i've tried universal vs standard architectures. All of these modifications have yeilded no success.
This question is following a previous problem with freetype that I fixed. Is it possibly still a problem with freetype? any suggestions?
UPDATE:
OK, I've gone through and reset up a whole new project following the App Distribution Guide. I Did see some issues with some of my build settings, and fixed them. But I'm Still getting the same error. Does anyone have a clue what I'm doing wrong?
I fixed it!
The problem was that I had only edited my project-info.plist. I went and added the same lines for CFBundleSupportedPlatforms to the info.plist's for each of my external frameworks.
CFBundleSupportedPlatforms => array,
item0 => MacOSX
Seems to have done the trick.

Facebook SDK for iOS6/Xcode 4.5 not working [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
file is universal (3 slices) but does not contain a(n) armv7s slice error for static libraries on iOS, anyway to bypass?
Recently upgraded Xcode and my iOS devices to the latest respective versions and i'm now unable to build an app using the Facebook SDK (version 3.0.8) for a device - building on the Simulator works fine.
Error I'm receiving whilst trying to build:
file is universal (3 slices) but does not contain a(n) armv7s slice: ....FacebookSDK.framework/FacebookSDK for architecture armv7s
I've noticed that on the iOS SDK landing page (http://developers.facebook.com/ios/) they have this peice of text..
Upgrade to 3.0 SDK. We will be adding support for the much anticipated iOS 6 integration to the SDK in the coming weeks.
So.. is that it? Am i literally unable to continue to work for potentially weeks until they support iOS6?
I'm hoping there is a quick fix for this, surely I can't be the only one in this situation.
Thanks for any help you can offer.
For a temporary fix you can do what Sudhakar said, but the app won't run on an iPhone 5, (or atleast with my tests it didn't). You really need a properly compiled SDK.
The current Facebook SDK is build for armv6. I hear they are working on getting a new version out asap that is build for armv7.
In the meantime you can clone down the facebook SDK from github and compile the SDK to work with armv7 yourself. Below are the instructions:
Download or clone a copy of the source code from the git hub page (https://github.com/facebook/facebook-ios-sdk)
Open up the xcode project and in the build settings change the architecture to armv7.
Save and close
Navigate to /scripts and in terminal run build_all.sh
This will then compile the source and output builds/FacebookSDK.framework
To get this to work I had to clone the git repository to /Desktop/iOS
I replaced the FacebookSDK.framework that was within my app with the newly created version and it worked like a charm.
good luck!
Click the your are Xcode Project -> in Architures tab -> valid Architures -> keep armv7 only and remove armv7s.
In my case it working fine, this is only temparary solution.

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