Xcode 4 building but not running OpenFrameworks example apps - xcode

I just installed Xcode 4 (on Mac OS 10.8) and downloaded OpenFrameworks (OF) library and examples. I put Openframeworks files in a random place, and when I open OF examples apps and try to build & run them with Xcode, it tells me "Building succeeded" but it's not actually running the application. I'm not a developer and I have no idea what to do!

Yes, that link spells it out, but to put it here:
The problem is that you haven't selected an application in your build settings for that scheme. So to do this:
Click on the name of the scheme (it's next to the "stop" button in the top left corner, and probably says "emptyExample Debug" or "emptyExample Release".
Click on "Edit Scheme..."
A window will appear. Select "Run" from the bar on the left.
Select "Info" from the options along the top of the window.
From the dropdown menu next to "Executable", select "emptyExample.app"
Now your OF application should build as expected.

Related

How to view crash reports in XCode

I've seen several (e.g. question1, question2, question3) questions about viewing crash reports that don't help me. Since I'm new to Apple development, my questions sort of translates to "is this how I'm supposed to open crash reports?"
Here's what I'm doing:
Open project in Xcode (version 12.4)
Navigate to Window->Organizer and click "Crashes"
Select the release build (1.2) for which I'm trying to view crash reports
Because Xcode shows no crash reports for that particular release (I do see some for older releases), I did this:
Login to App Store Connect
Navigate to App Analytics->MyApp->Crashes
Click "Add Filter" then App Version -> 1.2
This page shows that there have been over 100 crashes for this build in the last month (and they pretty well span the whole month). I am expecting to be able to view a report for each one of these. Is that not necessarily possible?
In response to some of the SO questions I've seen, I've done this:
Navigate to TestFlight->Build 1.2-> Build Metadata to verify I have included Symbols
Navigate to Users and Access->MyAccount to verify I have admin permission and Access to Reports
Restarted Xcode
What else should I be doing?
Under the Window menu, choose "Devices and Simulators". Plug in an iPhone or iPad. Even if the logs are for Mac apps.
Click on the device you plugged in in the left column. To the right find the button "View Device Logs".
In the new window click on "All Logs". You can drag any .ips fils onto the left window to view them. You can right click on any file to symbolicate them.
All this makes me think that someone at Apple has lost their mind.
In my case the symbolicate doesn't work and the logs don't display correctly

Simulators are not showing up for every newly created project

When I try to create new project in Xcode 8,simulators are not showing up which are already downloaded in previous project.
Click on the name of your project (which is on the right hand side of the Run button). Three options will appear.
Edit scheme
New scheme
Manage scheme
You can click on "New scheme" and then click on "OK" in popup window.
You will get the simulators back. Cheers.
I hope this works for you.
Previously simulators downloaded are of version 9.3 and deployment target is set to 10.0.Now I set deployment target to 9.3 and simulators are visible now.

Xcode 7.3 does not show up any downloadable iOS simulator

Just upgrade my Xcode from 7.2.1 to 7.3. Have no idea why. Do I have choices other than delete Xcode and reinstall again? (which I highly don't like).
BTW, the documentation tab is fine. Just a blank simulators.
Update: If I click "check and isntall now", it reports:
Could not download and install OS X 10.11.4 Documentation. The certificate for this server is invalid. You might be connecting to a server that is pretending to be “devimages.apple.com.edgekey.net” which could put your confidential information at risk.
I checked cert on https://devimages.apple.com.edgekey.net, seems fine..
In Xcode 7.3 I found the following way to add older simulator versions.
1.) Choose "Window" from the menu bar
2.) Choose "Devices" from the drop down menu list
Result: Devices window opens
3.) Click the "+" icon in the lower left-hand corner of the window.
4.) Choose the Add Simulator option
Result: You can add a simulator (and download older ones).

Errors in cordova+xcode ios build

I am getting the following errors in Application Loader when trying to deliver my app(built in vs2015+cordova+remote xcode 7):
Thanks in advance.
There appears to be an issue with Cordova's iOS implementation when publishing apps created specifically using Xcode 7.
A Cordova community member has published a "cordova-plugin-ipad-multitasking" plugin with a fix.
http://npmjs.com/package/cordova-plugin-ipad-multitasking
Install this plugin and you should be all set. A future Cordova version will resolve the problem fully.
Failing that, if you are using remotebuild you can also find the native project under ~/.taco_home/remote-builds/taco-remote/builds and make the modifications as described in the Cordova bug on the issue.
EDIT:
To resolve ITMS-90339, there is a second step you can do to patch in the near term. Grab the build.xcconfig from the 3.9.x branch of the cordova-ios repo and place this under res/native/ios/cordova
Now remove this line:
CODE_SIGN_RESOURCE_RULES_PATH = $(SDKROOT)/ResourceRules.plist
Note that you will want to remove this custom build.xcconfig file if you upgrade to the version with the full patch that is forthcoming.
By default Cordova doesn't fulfill all of the requirements for multitasking support. (CB-9161) You can follow the steps on that issue to make changes directly to the iOS project for multitasking support.
Use Xcode 7 (Cordova always uses the current SDK)
Click your Project icon in the Project Navigator
Click on your Target
Select the "General" tab
Go to the "Deployment Info" section
Select the "iPad" button segment
For "Device Orientation", select all four checkboxes (Portrait, Upside Down, Landscape Left, Landscape Right)
Add a new File: Launch Screen --> "Launch Screen.storyboard"
Click your Project icon in the Project Navigator
Click on your Target
Select the "General" tab
Go to the "App Icons and Launch Images" section
Select "Launch Screen.storyboard" from the "Launch Screen File" dropdown

Browse the files created on a device by the iOS application I'm developing, on workstation?

I'm developing an IOS app that creates files on the device, e.g. with NSKeyedArchiver.
During Android development it's possible to browse a device filesystem when it's connected to your workstation via USB, for instance to help with troubleshooting your app.
However for IOS I don't see anything similar under the Organizer in Xcode, to help me browse files my app creates from the workstation. Googling "iOO browse device files", "iPhone view files" etc. reveals solutions for jailbroken devices but not for regular devices provisioned for development.
How can I browse files on a device created by an iOS app I'm developing?
In Xcode's Organiser, go to your device's Summary tab. Find your application in the list, and click the disclosure triangle. Under it, you should see an icon saying "Application Data". Click the down pointing arrow to download the data, and it'll prompt you for somewhere to save it.
In Xcode 5, listed under your device in Organizer, click on "Applications" and you can see "Data files in Sandbox" in the bottom half of the window.
In Xcode 6, go to Window -> Devices, select the device, select the app name under Installed Apps, click the settings gearbox, then select Download container.... In finder, double finger tap the package and select Show package contents.
In Xcode 6, open the Devices window:
Then, select the app (in Installed Apps) and then click the gear icon and select Download Container.
Pls note, that you can view contents of downloaded .xcappdata container by right click on it and select "Show Package Contents"
iExplorer works like a charm! Just used it to export some app files! http://www.macroplant.com/iexplorer/download-ie3-mac.php
In Xcode9: / Window / Devices and Simulators
Select the desired installed app, click the gear at the bottom and Download container...
In Finder, "right-click" the downloaded file and Show Package Contents to open it in a new Finder window.
I hope it's useful. Peace.
XCode version : 10.2.1
goto window -> Devices and Simulators
and after that choose your device from the left list, choose the app from the installed app, so you can press show container for show app's contains on the new page on xcode, press download container to download it to your OSX, also you can replace an old container to the moment state with Replace container...

Resources