Xcode doesn't create iOS .app release file (products). How to fix this? - objective-c

I've updated to the latest version of Xcode 4.5.1 and I have some troubles. When I build debug version of the project and run it on iOS simulator everything works just fine. But when I switched to release flavour in project schema and build project nothing happened. I mean project runs on simulator, but Build folder of my project remains empty.
I tried to follow this advice
Why doesn't Xcode 4 create any products?
but in the created folder DerivedData there are only logs and indexes folders and no .app files.
So the question is: How to get executable on real iOS6 device .app file in Xcode 4.5.1? I'm really a newbie and the delivery/deployment process in iOS is unknown to me.

Change your choice of deployment devices to an actual iOS device (don't use the simulator). After that, execute an "Archive" build (Product -> Archive). This option will be grayed out if you don't choose to deploy to an actual iOS device.

Related

Xcode workspace with iOS and macOS

I have an iOS app which I need to build a supporting app for macOS. I was hoping to share code between them, specially the DataModel.
As the iOS app was using Pods, there was already a workspace.
I pulled in the macOS project into the workspace, and I can see all its files with no problem. But I don't seem to be able to figure out how to 'use' the class files from the iOS project in the macOS project. Would it have anything to do with Modules?
Or should I just make a new Target that is a macOS application?
I'm using Xcode 8.3.3 at the moment, and the projects are in Swift.
Select the source files you want to use and tick the "Target Membership" for your macOS target in the Inspector:
Update:
To use common code in different projects, make an extra project for your common code which builds as a Framework and include this framework in the iOS and in the macOS.
This tutorial might be helpful.

Installing Xcode 8 on pre-installed Xcode 7.3.1 [Using multiple version]

Hi I am currently using Xcode 7.3.1 on macOS Sierra. Due to the issue ERROR ITMS 90167. I can't upload my archive using Xcode 7.3.1. So, It's time to upgrade Xcode 8.
But, unfortunately, I can't use Xcode 8 to Develop application due to migration problem on my previous project which was big. All I want is built in Application Loader from Xcode 8. And I need to do some migration on Xcode 8 while I am developing my current app from 7.3.1
And I did download Xcode 8 from Developer Program => Xcode8.xip
Before I install this version, I changed my previous Xcode 7.3.1 to
//Application/Xcode7.3.1.app
inorder to protect overwriting this version.
When I paste Xcode 8(Xcode.app) which i extract from .xip to Application Folder, I open it after its done installing after passing "Installing Component".
Then I open it,it worked (Xcode.app) = Xcode 8.
Then when I open my 7.3.1(Xcode7.3.1.app), it stop working means can't open and show me crash message every time I opened it until I changed my Xcode 8 app title to
//Application/Xcode8.app
So, there will be two Xcode Version on Application Folder. Then when I open Xcode 8(Xcode8.app), it won't let me open and show me error alert again.But, Xcode 7.3.1(Xcode7.3.1.app) come back to live and prompt me to install .git Command Line Tools then I can work back using Xcode 7.3.1.
But then, my problem is I can't open or use Xcode 8 anymore even I change my Xcode app name to different name.Was it "Command Line Tools" causing the problem?
I really need solution to solve this case because I want to use both Xcode Version on my mac.Any Help?
Download Xcode DMG files. I have Xcode 7.3.1 in my Applications folder and Xcode 8.0 in my Desktop folder. I use both Xcode very often.
If you already have two Xcode delete one, delete Xcode 8.0. Or delete both of them if you want. And you can download Xcode 8.0 from developer portal or update to macOS Sierra and download the AppStore version of Xcode 8.0. But then you can't download Xcode 7.3.1, you will not get the DMG, I don't think that you can download the DMG from developer portal for Xcode 7.3.1.
So in my opinion the best option is that. delete Xcode 8.0 from your Applications folder. And download Xcode 8.0 DMG from developer portal and put in some other folder not in Applications folder.
I have both the versions of Xcode 7.3 and 8.0. I have installed Xcode 8.0 from dmg file without changing anything in the applications folder for Xcode 7.3.1.
After installation of Xcode 8.0, I observed application folder has only one Xcode version so to open projects in different version I do something like in the image
This works just fine.

ERROR ITMS - 90167 No. app bundles found in the package on macOS Sierra

I am using Xcode 7.3.1 on macOS Sierra which I just updated yesterday.
Since I updated, I can't upload any more builds to Testflight; I always get this error message.
ERROR ITMS - 90167 No. app bundles found in the package
I see from research that this problem only happens in the macOS Sierra beta, but I worry it's going to continue through the final release
After a deep search and investigation, I finally decided that there is nothing wrong with our build. There was a problem when uploading our build with Apple iTunes Connect, which is that server denied uploading our build on Xcode 7.3.1 on macOS Sierra. But, uploading with Xcode 8 is working just fine. Just use the Application Loader from Xcode 8 if you are not ready for Migration to Xcode 8, or if some of your project's third party libraries don't support Swift 2.3.
So, how do I pass this?
Simply, just install two version on Xcode: one to continue your development.And one for uploading the submit.
Here is how : https://blogs.oracle.com/mobile/entry/how_to_install_multiple_xcodes
Create an archive from your Xcode 7.3.1 and export an .ipa with with your production profile. Then upload that .ipa via the Xcode 8 Application Loader. This is inside the Xcode app bundle: Xcode.app/Contents/Applications/Application Loader.app
You can also get to it inside of Xcode:
Xcode menu > Open Developer Tools > Application Loader
This is the only solution until Apple fixes it, believe me.

How to test my app on ios 7 using Xcode 6 simulator

I'm trying to test my app with ios7 using Xcode 6's simulator but I can't find the option to change it. Currently it only loads ios8 while my deployment target is set to 7.
Also according to this message from Apple:
Starting February 1, 2015, new iOS apps uploaded to the App Store must include 64-bit support and be built with the iOS 8 SDK, included in Xcode 6 or later. To enable 64-bit in your project, we recommend using the default Xcode build setting of “Standard architectures” to build a single binary with both 32-bit and 64-bit code.
Does this mean that new apps cannot run on ios7 anymore?
Thank you for your help.
First, Change Deployment Target to 7.You can change Deployment target from target under Deployment Info.
Go to Xcode Preferences, Select Downloads tab and download iOS7 Simulator.
Now go to Xcode, you can find iOS7 Simulator on target device list, if not than quit and restart Xcode.
Hope it will help.
The deployment target is the minimum version of iOS that your application will be expected to run on. It effects how your app is BUILT and not where you run it. You need to choose an iOS 7 device from the run destinations menu and then do a Build&Run to build, install, and run the app on the iOS 7 device.
If you don't have an iOS 7 simulator device in the run destinations menu, go download the iOS 7 runtime from Xcode -> Preferences -> Downloads
Yes you can, go to xcode(7) preferences>select Components here you can download Simulater and Documents also.

iOS Simulator Doesn't Install Application

Using Xcode 5.1 to debug an iOS 7.1 iPad application.
When I build and run my project in the iOS Simulator, the simulator opens and my app icon pops up for a second. Then it looks like the app stops installing and the simulator goes to the home screen. Xcode still thinks it's debugging and it doesn't show any errors in Xcode or the simulator. I can go to my app in the simulator and click it again, but it just crashes. I get the same behavior in iPad, iPad Retina, and iPad Retina (64 bit). Any subsequent tries to run the app in the simulator doesn't even attempt to pop the app icon up until I quit the iOS Simulator and try again. All the usual fixes haven't worked for me yet.
Fixes I've Tried:
1. iOS Simulator > Reset Content and Settings...
2. Window(in Xcode) > Organizer > Delete Derived Data & Delete Snapshots
3. Delete Contents in ~/Library/Application Support/iPhone Simulator
4. Uninstall Xcode and reinstall
5. Clean project and rebuild
6. Restart machine
I'm out of ideas. Is there something I've missed?
Thanks all!
Create another app with the exact same template and look at the app delegates and make sure they are the same.
Example: AppDelegate.h and AppDelegate.m
You might've accidentally deleted an area that helps load the App.
Alright I found the problem. I was playing with how we load our frameworks because we were having other issues before and I left a bad value in our Linking settings.
Here's how I fixed it:
Project > Build Settings > Linking > Mach-O Type set to "Executable"
It was set to "Bundles" before which causes Xcode to package the app in a way that caused ours to break.
Helpful Post: In Xcode project target build settings, What is Mach-O Type?