xcode4

How do I add OpenGL Mathematics (GLM) to Xcode 4?

浪尽此生 提交于 2020-01-14 12:36:15
问题 I can't figure out how to add the framework to my project. I tried adding it like any other framework, by clicking the plus button under Link Binary With Libraries and then clicking 'other' and then selecting the GLM folder. But when I go to included it, the autocomplete works but it can't build because it says the file is not found. Website for library: http://glm.g-truc.net/ 回答1: According to the website, it's not a framework, it's only headers. You should just add the headers directly to

Deleting/Removing Group in Xcode

你。 提交于 2020-01-14 09:23:27
问题 I seem to be having a very odd problem with my iPhone project in XCode4. By accident, I seem to have dragged a new group I created out of my main project group: When I try to move the group back into the project group, XCode crashes. When I try to delete the group by dragging it to the trash can, no such luck either. Is this because it's an iPhone project, and I somehow have messed up the entire directory of groups? 回答1: I figured it out. I had this empty group or folder whatever it is (let's

Force a specific localization to be used for a target

落爺英雄遲暮 提交于 2020-01-14 07:26:06
问题 I'm developing an app that, among other things, will play a large audio file (30MB). I want to submit the app to the App Store in several countries. The audio file is different per target country, the rest of the app remains the same (Although localized). I've created a target for each country, a bash script takes care of copying the correct audio file into compiled app based on the target, and it works great. I've also localized the ressources (Images and Localized.strings) to make it easy

Xcode — quickly open current file in external editor

烂漫一生 提交于 2020-01-13 16:25:14
问题 Is it possible to set a keyboard shortcut (or maybe add some menu item somewhere) to open currently edited file in external editor? (Obviously I may do [ (right click in file tree → Show in Finder) / (right click in window title → select containing directory) ] → right click on file → Open With → "the app" — but it's too much steps.) 回答1: Huh, I've found it. Start Automator.app. Select "Service". Drag-n-drop "Run AppleScript" to workflow. Set "service receives" to "no input", and application

Xcode 4 : Can I get a path to the currently active file via AppleScript?

為{幸葍}努か 提交于 2020-01-13 09:15:32
问题 I am trying to write a custom xcode4 behavior to check out the current active file with Perforce. I know I can write a custom behavior to run when hit a key (e.g., F1 ) I'd like that custom behavior to launch an AppleScript (or any kind of script for that matter) that discerns the currently "active" source document in Xcode, get its path, and attempt to check it out via Perforce. As far as I can tell AppleScript is the best way to get to the target document as it can navigate the Xcode DOM

Xcode 4 : Can I get a path to the currently active file via AppleScript?

旧时模样 提交于 2020-01-13 09:15:15
问题 I am trying to write a custom xcode4 behavior to check out the current active file with Perforce. I know I can write a custom behavior to run when hit a key (e.g., F1 ) I'd like that custom behavior to launch an AppleScript (or any kind of script for that matter) that discerns the currently "active" source document in Xcode, get its path, and attempt to check it out via Perforce. As far as I can tell AppleScript is the best way to get to the target document as it can navigate the Xcode DOM

Howto “sandbox” my Lion application?

一笑奈何 提交于 2020-01-13 08:32:10
问题 Apple has decreed that all applications submitted to the Mac App Store must be sandboxed, starting in November. Ok, but how can I "sandbox" my app? I found the official Apple's guide Code Signing And Application Sandboxing Guide. This document lists the following steps: 1) "Enable sandboxing for your application." Ok, easy: I have to open Xcode 4, select the project, select the target, go to the Summary tab and check: "Enable Entitlements" "Enable App Sandboxing" ...and every single

Howto “sandbox” my Lion application?

喜夏-厌秋 提交于 2020-01-13 08:32:04
问题 Apple has decreed that all applications submitted to the Mac App Store must be sandboxed, starting in November. Ok, but how can I "sandbox" my app? I found the official Apple's guide Code Signing And Application Sandboxing Guide. This document lists the following steps: 1) "Enable sandboxing for your application." Ok, easy: I have to open Xcode 4, select the project, select the target, go to the Summary tab and check: "Enable Entitlements" "Enable App Sandboxing" ...and every single

How do I expand stack traces in XCode 4

為{幸葍}努か 提交于 2020-01-12 13:44:04
问题 XCode 4 has a really stupid feature that "summarizes" stack traces in the debugger by showing the first and last two items in the call stack. Does anyone know how to eliminate the dotted line and show the useful information? 回答1: If you want to see the entire stack trace, drag the slider at the bottom left of the debug navigator (below the stack traces) all the way to the right. It's not simply showing the first two and the last one, though. Rather, it's showing the top and bottom of the

xCode 4 hangs… what to do?

痴心易碎 提交于 2020-01-12 13:12:40
问题 xCode 4 started to hang on any project under svn control. I use a remote repository which is accessible and works just fine from a command line. The only work around I was able to find is to kill local svn and checkout the whole project again. That seems to work for a bit but then the same problem shows up: xCode just hangs solid a few seconds after I start it. I would really appreciate any help to resolve this... Can't do anything :( Please and thanks. Log shows the following: 3/22/11 9:53