how to tweak XCode Organizer GUI? - iphone

I've just noticed that I can't read the Creation and Expiration dates of profiles in the Xcode Organizer. I don't seem able to change the width of these gui fields in organizer and the dates display as 14/03/... instead of 14/03/13 for example.

The only solution I found is:
- press CTRL and select the profile with mouse (you should get menu)
- select Reveal Profile in Finder (works only with profiles in the Library, not stored on the device)
- open the profile in Finder with Other... and select TextEdit
The creation date is visible once opened in TextEdit.
For profiles stored on the phone you can of course open Settings -> General -> Profiles -> particular profile and view the date there.
Edit: Ah, just found the hidden shortcut in XCode. Simply however over the date and press left Shift.

Related

Xcode 11 pin menu for Auto Layout is missing (under Main.storyboard) - only on this project

Xcode 11 is missing the Pin menu for Auto sizing on the lower right of the screen - same line as the device emulator name display.
Recent backups have the same problem. Backup from two weeks ago, for this project, show the Pin menu for Auto layout, but prefer not to go that far back.
I looked at the Main.layout file in the text editor saw nothing interesting, but I have no knowledge what it should look like,
I Used Terminal command: spctl --assess --verbose /Applications/Xcode.app
It shows I have a valid version of Xcode.
Stackoverflow has answers on this problem from several versions ago, that do not work with current xcode 11.2.1.
It is a Swift, iPhone + Apple Watch project.
The solution: Check the box for "Use Auto Layout" in the file inspector. 1) Click on the Main.storyboard., 1) Right-click on the Main.storyboard. 2) Click on "Show File Inspector" This may or may not show you the "Interface Builder Document". It should bring up your right Pane if it was closed. 3) Click on one of the controls on your story board, this should bring up the "Use Auto Layout" if it was not already displayed. 4) Check the "Use Auto Layout". You should now have your Pin Auto Layout buttons.

How do I profile my app - the menu item is disabled?

How do I profile my app in xcode - the menu item is disabled?
Product > Profile is disabled
This is very unlikely but still, one possible reason:
Make sure correct 'Executable' is selected in 'Profile' option for your Scheme. If the selected executable is 'None', profile option will be disabled.
In case you don't know how to check scheme settings, you can check these setting by selecting 'Edit Scheme' either from Scheme menu (App name and device/simulator drop downs near the Run and Stop button ) or from 'Product' menu of xcode
My profile menu item was also dimmed.
I realized I had disconnected my iPhone from my Mac which broke the product destination link. If you've been testing on your phone, try resetting the product destination.
If the phone doesn't show up in the Product/Destination submenu do the following:
Run a terminal session.
In terminal type the following:
sudo launchctl stop com.apple.usbmuxd
Unplug and replug your phone to your Mac.
If your phone still doesn't appear in the Product/Destination submenu, restart Xcode and repeat step three.
Set your phone in the Product/Destination submenu.
Your Profile menu item should be undimmed.

Take iPhone App Screenshot from Organizer

How do I take iPhone App Screenshot from Organizer? I mean in XCode, what profile should I select and what settings/values?
You're over thinking this. Just open the organizer, select the attached device, click on the "Screenshots" tab, and click "Take Screenshot".
To find the files later, by default they are saved in
Library/Application\ Support/Developer/Shared/Xcode/Screenshots/

Xcode 4: How do you view the console?

I can't seem to find a way to have the console run (to show NSLog comments) in XCode 4. The normal method for the previous version of XCode does not work. Does anyone have an idea of how to accomplish this?
You need to click Log Navigator icon (far right in left sidebar). Then choose your Debug/Run session in left sidebar, and you will have console in editor area.
for Xcode 5:
View->Debug Area->Activate Console
shift + cmd + c
If you just want to have the log output display when you run your app then you can go into XCode4 preferences -> Alerts and click on 'Run starts' on the left hand column.
Then select 'Show Debugger' and when you run the app the NSLog output will be displayed below the editor pane.
This way you don't have to select on the 'up arrow' button at the bottom bar.
The console is no extra window anymore but it is under the texteditor area. You can set the preferences to always show this area. Go to "General" "Run Start" and activate "Show Debugger". Under "Run completes" the Debugger is set to hide again. You should deactivate that option. Now the console will remain visible.
EDIT
In the latest GM Release you can show and hide the console via a button in the toolbar. Very easy.
Here' an alternative
In Xcode 4 short cut to display and hide console is (command-shift-Y) , this will show the console and debugger below ur text edior in the same window.
You can always see the console in a different window by opening the Organiser, clicking on the Devices tab, choosing your device and selecting it's console.
Of course, this doesn't work for the simulator :(
There's two options:
Log Navigator (command-7 or view|navigators|log) and select your debug session.
"View | Show Debug Area" to view the NSLog output and interact with the debugger.
Here's a pic with both on. You wouldn't normally have both on, but I can only link one image per post! http://i.stack.imgur.com/4gG4P.png
Here's an alternative.
In XCode4 double-click your Project (Blueprint Icon).
Select the Target (Gray Icon)
Select the Build Phases (Top Center)
Add Build Phase "Run Script" (Green Plus Button, bottom right)
In the textbox below the Shell textfield replace
"Type a script or drag a script file from your workspace" with
"open ${TARGET_BUILD_DIR}/${TARGET_NAME}"
This will open a terminal window with your command-line app running in it.
This is not a great solution because XCode 4 still runs and debugs the app independently of what you're doing in the terminal window that pops up.

Can't select Primary Output as target of shortcut in Visual Studio 2005 setup project

I've Added a setup project to my solution (didn't use the wizard) I then added the primary output of the Windows Application I have coded to the Applcation Folder node (Right click the setup project in Solution-Explorer and select View -> File System). I Right clicked the User's Desktop node and selected 'Create Shortcut to user's Desktop' in the context menu. Typed a name for the shortcut and then in the properties window clicked the ellipsis button for the Target property. A dialog is displayed but it won't expand the Application folder node and let me select the Primary Output as the target !!! WTF ???
I have done this on another project but I can't for the life of me figure out why I can't do it on this one. Hell! the projects are almost identical in every other way. Gah! going bald. Hoping someone out there is having a better day than me and has time to give me the probably screamingly obvious solution and make me feel lame.
You actually have to right-click on 'Primary Output From ' in your setup project, and create a shortcut to that. Then, you can move the shortcut over to the 'Users Desktop' location within your setup project.
I think you've created a shortcut to the desktop, on the desktop.
Try clicking on User's Desktop, then right-clicking in the right hand pane, and selecting "Create new shortcut" from there.