When I try to archive my project which include a library I get only generic archive type instead of IOS type.
I manage the scheme so my library would be in my main project container, I changed the skip install in the library to "YES".(in the main project set to NO but tried also to YES).
Why this keep happening?
Maybe this will work?
Go to Xcode preferences and make sure to download all provisional profiles. Quit Xcode & restart your computer then try deleting (backup if you want) your library - developer - Xcode - Archives folder and DerivedData folder. Archive
Try this if the above doesn't work:
Xcode 7 GM created generic archive instead of iOS app archive
Related
I need help. I make an AR app for iOS using Unity 2019.2.0f1 and Vuforia 8.3.9. I don't have a problem when build or archive it. But when I want to distribute it failed with error "code signing "Vuforia.framework" failed.".
For a few days I try to google this issue and try few workarounds like try to edit build version Vuforia.framework info.plist and move the Vuforia.framework from the 'Link Binary With Libraries into 'Copy Bundle Resources' and nothing work.
It works fine with Xcode 9 when I change the Vuforia.framework info.plist build version but not working with the Xcode 10.2.1. I can use xcode 9 but we cannot publish the app anymore with Xcode below 10.1 anymore. Thanks in advance.
I'm currently working on a project using Xcode 9.4. I have to reinstall an app on an iPad air 2 because the app doesn't work anymore after the version 11.4.1 of iOS.
When I run the project on the iPad device from Xcode the build is successful but there is a problem just after.
Screenshot of the problem
I tried many things like :
clean and delete derived data
put the GCC version on "Default compiler (Apple LLVM 9.0)
check the name on info.plist (info.plist)
copy the file info.plist from a new project
check if the main.m file is in the compile sources
put the valid architecture on "arm 64 armv7 armv7s"
set the target membership on my app (target membership)
check the certificate and the provisioning profile
change the signing section (project / target / target test / target UI test)
Thank you to read this post. Hope you can help me.
Sincerely.
EDIT :
screenshot of frameworks folder
I faced same issue, and solved by delete info.plist file in framework folder of downloaded by Github.
Recently updated to Xcode 6 and now whenever I archive a project, I get a .pkg instead of an .ipa. I've set the other target in my project (cocoapods) to skip install but that didn't do the trick. The deployment target is iOS, not mac (it's an iphone/ipad app that previously archived .ipas fine).
Am I missing a new setting somewhere (i.e. default archive iOS apps to .ipa) or is there a gotcha with ad hoc distribution on Xcode 6 I'm not aware of?
Add LSRequiresIPhoneOS YES to your Info.plist
The key can be found as Application requires iPhone environment
I couldn't find a direct way to do this in the Xcode 6 GM (or betas), but found a couple solutions that have worked:
Archive in Xcode 6 and export in Xcode 5. This worked for me while I was using the betas, but after installing the GM, the Xcode.app binary overwrote my Xcode 5 version (This could be easily reinstalled). #Anan answered that here.
Grab the .app file from your .xarchive and package your own .ipa by creating a Payload directory, copying the .app into it, zipping it, and renaming the extension to .ipa.
I tried using the TestFlight desktop app and dragged the archive into it after creating an account. This seemed to go through the motions of packaging the .ipa and uploading it to the TestFlight servers. I wasn't able to find a trace of the .ipa on my local machine. This probably works, just not sure where to grab the .ipa. You would have to generate the .plist on your own or use an old one.
Regardless, this seems like a bug and these workarounds are annoying to have to do for something that used to take 5 seconds to complete.
Steve
I recently upgraded my PhoneGap app from 2.4.0 to 3.4.0. To do this I had to create a new project using NodeJS, then copy all the www files and resources into the new project. I added a new ios platform. It compiles and runs in xcode 5.1. The simulator works too.
Now I want to submit this to the app store as an update to my previous version. The problem is the "Product > Archive" menu in xcode is disabled.
Has anybody who can give me some direction been through this process? Or direct me to where I can get some help?
======
UPDATE: I found that I the target device must be set to iOS Device in order to archive a project. Now Archive is enabled. I run archive, but no archive is listed in the Organizer.
Still looking for help.
Make sure you connect your device first. You cannot archive your project without a device.
This turns out to be a simple oddity with Xcode. If you have a simulator selected you cannot archive. Choose iOS Device and then you can archive, with or without an actual physical device connected.
I have iOS app source code i want to determine which version of xcode was used to develop the project.
In project.pbxproj when i go to section /* Begin PBXProject section */ it says
compatibilityVersion = "Xcode 3.2";
so my guess is it has been developed on some 4.x version not on xcode 5. Please suggest.
If you have .xcarchive or .ipa file that is associated with the project then you can determine the version of Xcode that was used to build it. Xcode adds, among other things, a "DTXcode" key to the info.plist upon build.
So open your .xcarchive file with Finder or rename the .ipa file to .zip and open that with Finder.
Navigate to find the app bundle file - that's the one with the .app extension. Right click and "Show Package Contents." Find the info.plist and open that with a text editor.
You will see something like:
<key>DTXcode</key>
<string>0611</string>
In this case, 611 is Xcode 6.1.1.
Alternatively, if you have access to iTunesConnect, you can see the details of a binary that was uploaded. Look for "Build Details" and find a key called "Build SDK." It will be an alphanumeric string, e.g. 12B411.
Since Apple usually only bundles one version of the SDK with Xcode, you can use this site to find the version of Xcode that corresponds to the SDK:
https://en.wikipedia.org/wiki/Xcode
In the case of 12B411, I see that is was iOS 8.1 final, which was bundled with Xcode 6.1 build 6A1052d.
If you open the project.pbxproj file and search for CreatedOnToolsVersion, it looks like that will give you what you want here, at least with newer versions of Xcode.
I see it set to 7.3.1 in one of my projects and 8.3.2 in another, created with that version of Xcode.
On Xcode 11-12, This works for me:
in your schema file it mentioned the last used Xcode version.
YourProject.xcodeproj/xcshareddata/xcschemes/YourSchema.xcscheme
LastUpgradeVersion = "1160" means Xcode 11.6
Xcode changes this value when you click on Update to recommended settings warning!.
Even if you uncheck all recommended settings and click done it still changes the number.