I am working on my first iOS app. It works and build correctly but when I wanna to find .app file I cant find it. My appname.app is red and I cant "show in finder". Where can be the problem that I havent developer account?
Thank you for replies.
Assuming you run this app in the simulator from XCode:
~/Library/Application Support/iPhone Simulator/7.1 (or whatever OS you run it out of XCode)/Applications
In here you will find some folders with random names. One of these is your app.
1) Set your build for "iOS Device" (not simulator).
2) Product/Build.
Then you will see the .app file created.
Related
I use create-react-native-app, and I wonder how I can get a .ipa file to run in my iPhone from it? I see the command npm run eject, but I do not know what to do next. And for some reason, I cannot use exp in the command line.
Is there a detail instructions to solve my problem? thanks
npm run eject will not create a IPA file for you. It will just create project files for iOS and Android which you can run on their respective IDE's. i.e Xcode and Android Studio.
Here is a good document which you can use to build iOS without ejecting it : https://docs.expo.io/versions/latest/guides/building-standalone-apps.html
If you choose to eject then, open Xcode project from the iOS folder -> change the bundle id. and follow along this https://wiki.genexus.com/commwiki/servlet/wiki?34616,HowTo%3A+Create+an+.ipa+file+from+XCode,
I xcode:
Change scheme destination to generic ios device
Go to Product - Archive
Go to Window - Organizer
Select the archive you want, click export
There you should be able to choose method and destination.
I don't know what has happened to my Xcode, but since I deleted my app from the device, and tried to rerun it on my iPhone, I get this message coming from the top of the screen:
No such file or directory (/Users/spazm/Library/Developer/Xcode/DerivedData/newProject-cfjhjgezzcapwoadaivpptyywptu/Build/Products/Debug-iphoneos/proj.app/proj)
In addition, where you can select the "active scheme" (iPhone / iPhone Simulator / iPad Simulator), I used to have "iOS device", and right after plugging my device in, I would get my phone's name and everything would go sweet.
Now, I only see "iOS device" (after plugging in), and I need to select my phone manually, which seems like something went wrong here. I am not sure what.
In the xcode organizer delete "derived data"
Alternatively you can open "~/Library/Developer/Xcode/DerivedData" folder and delete derived data folders associated with your application. You also should make a clean/build.
For the second problem, again in the organizer window under devices find your device and click "use for development"
Edit: Today I have experienced again, deleting derived data did not solved the error this time. After deleting data, making a clean build, deleting the app from my device, I needed to close & reopen xcode, which finally fixed the error.
The problem was in the project file itself. Used my backup to load the old project, then manually added all the files from the bad-new-project.
Must have been some setting.
Try checking the Deployment Target for the app. I was getting this same error when trying to deploy an app that required iOS 6.0 to a device that had 5.1 installed.
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.
Dev guys from other company, sent me iOS app package that is build with Xcode, but I don't have its Xcode project, just built app package file. How to run that on simulator or on iphone?
UDPATE: I'v tried Simulator launcher but the solution is not working when using Xcode 4.2.1.
UPDATE2: Also tried to use this solution but with no luck (getting black simulator screen and errors shown in terminal after launch). IMHO these problems might be related to iOS 5
UPDATE3: Also, unsuccessfully, tried to use this solution
normally you should be able to install it with itunes, a detailed step-by step guide can be found here: http://www.wikihow.com/Install-Ad-hoc-iPhone-OS-Apps
If it is built for device, you can install it to your device using iTunes or Xcode Organizer. However, you cannot run it on any device. They should also give you a provisioning profile for letting you install that app on your device.
Found the solution. I'v asked the guys to send me "ipa" package instead of raw .app package. Then added it to my iPhone device.
I'm trying to find the .app file in my project folders but I can't find it. As I remember it was just to go into the build folder in the project folder and the .app file should be there but now I don't have a build folder in those app.
Thank you in advance!
In Xcode: expand Products then, right click on your app and from the menu click on Show on Finder or Reveal on Finder.
In Xcode 4, build products are stored by default in:
~/Library/Developer/Xcode/DerivedData/AppName-lotsofrandomchars/Build/Products/
If you've upgraded to Xcode 4, things have changed. Click Product/Archive to build a release version of your app, then Window/Organizer, and select the Archives pane. Select the archive you just built, then click the "share" button towards the top right.