xcode4

How do i associate excel file type (xlsx) with iPhone application

大憨熊 提交于 2019-12-03 05:59:08
Hi i have managed to open .xls files form mail app by adding document type to the project build and set the Types field to "com.microsoft.excel.xls" (see screen shot). I want to do the same with xlsx files but can't do it. I tried to add "com.microsoft.excel.xlsx" but it didn't work I solved that by defining custom UTI as follows. Try to add these definitions into your info.plist. It works as expected. <key>UTExportedTypeDeclarations</key> <array> <dict> <key>UTTypeDescription</key> <string>XLSX input table document</string> <key>UTTypeTagSpecification</key> <dict> <key>public.filename

Where is “upgrade target for ipad” in Xcode4

≡放荡痞女 提交于 2019-12-03 05:48:01
I'm running Build 4A304a and for the life of me I can't find it in Xcode or any reference to it on the internets. any help would be greatly appreciated. Right-click the target and click Duplicate. Choose to Duplicate and Transition to iPad. Select your project in the Project Navigator, click your target, and then click the Summary tab. You can switch your iOS Application Target there to Universal. Here's a screenshot: 来源: https://stackoverflow.com/questions/5355958/where-is-upgrade-target-for-ipad-in-xcode4

How to add a build phase in a project template?

我只是一个虾纸丫 提交于 2019-12-03 05:21:31
问题 I'm trying to add a Run Script Build Phase to a target in a custom Project Template for Xcode 4. Does anyone have any examples, tutorials, or tips on how to do this? I'm assuming that this will be done in TemplateInfo.plist - but my searches are comming up fruitless. 回答1: After quite a lot of trial-and-error I've worked it out. This is the extra key needed in the TemplateInfo.plist. This adds a script that will run after the other default build phases. <key>Targets</key> <array> <dict> <key

How to auto increment build number in Xcode [closed]

守給你的承諾、 提交于 2019-12-03 05:13:12
Closed. This question is off-topic. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it's on-topic for Stack Overflow. I found many solutions and scripts on this site, but the easiest solution to increase the build number in Xcode is: Go to Build Phases in your TARGETS section and add Run Script Build Phase: Change Shell to /bin/bash and insert the following script: #!/bin/bash buildNumber=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "$INFOPLIST_FILE") buildNumber=$(($buildNumber + 1)) /usr/libexec/PlistBuddy -c "Set

How do I reliably get Instruments 4.x to symbolicate?

谁说胖子不能爱 提交于 2019-12-03 04:52:12
I have a bit of a dilemma — no matter what I do, I cannot get Apple's Instruments.app to symbolicate any of the included instruments while I'm profiling on my devices (it works OK in the iOS Simulator). I've tried just about everything I can think of, including: Checking that I'm actually building a dSYM Switching between Debug and Release build schemes Making sure that the signing certificate being used in my Development cert Adding and removing my Derived Data folder from Spotlight's Privacy list Clean & Build before profiling Removing the Derived Data folder before building and profiling I

#pragma mark not listing the first group name

血红的双手。 提交于 2019-12-03 04:45:06
I'm using #pragma mark for grouping my methods under certain categories. But the issue is in Xcode 4 my first category is not displaying. My code looks like: @interface MyClass : NSObject #pragma mark - #pragma mark Category 1 //Some method declaration #pragma mark - #pragma mark Category 2 //Some method declaration #pragma mark - #pragma mark Category 3 //Some method declaration @end But when I check on Xcode It displays only Category 2 and Category 3. Category 1 is not listed there, please check the Image Is there any issue in my code or is it a bug in XCode ? Yes it is a Bug here. But you

Is filemerge still available after Xcode 4.3 installation?

北城以北 提交于 2019-12-03 04:43:24
问题 Where can I find filemerge after Xcode is upgraded to 4.3? 回答1: In Xcode, choose this menu item: Xcode -> Open Developer Tool -> FileMerge. The app itself is here: /Applications/Xcode.app/Contents/Applications/FileMerge.app On the command line, use opendiff . You must have the command line tools installed -- go to Xcode, Preferences, Downloads tab, and install Command Line Tools if you haven't already. 回答2: Run this in your terminal: sudo /usr/bin/xcode-select -switch /Applications/Xcode.app

Storyboard Zoom In/Out Keyboard Shortcut

谁说胖子不能爱 提交于 2019-12-03 04:43:22
问题 What shortcut key combination can I use in Xcode to zoom in and out? Yes, I know this is a silly question but a Google search didn't give me any result. Even the Xcode keyboard shortcuts didn't give me much info. Maybe I must ask for a better updated keyboard shortcut doc for Xcode 4.5 回答1: Try this Zoom Out = shift + command + alt + { Zoom In = shift + command + alt + } This worked for me! 回答2: You can also double click with mouse on empty area of storyboard. First time will zoom out, second

Using Boost with Xcode4

我怕爱的太早我们不能终老 提交于 2019-12-03 04:32:55
问题 has anyone setup a C++ Xcode4 project to use Boost? what settings do I need to set in Xcode for a simple C++ console application? Thanks 回答1: Managed it with this: and this: 回答2: I would just like to add on to the previous post: After running $ sudo port install boost (this can be done once you have macports installed). libboost_system.dylib and libboost_filesystem.dylib could be found in /opt/local/lib/ boost_1_46_1.tar.bz2 will be located in /opt/local/var/macports/distfiles/boost/

Is there any documentation for building Xcode 4 plugins?

旧时模样 提交于 2019-12-03 04:32:29
问题 Recently I've noticed a couple of projects on github that extend the functionality of Xcode 4 via plugins. Two projects as examples by @olemoritz: MiniXcode changes the main toolbar. ColorSense provides overlays to help pick colours. Both projects are installed into ~/Library/Application Support/Developer/Shared/Xcode/Plug-ins and Xcode just picks them up. Are there any sources of documentation (officlal or user generated) on extending Xcode? Edit: ping @olemortiz ;) 回答1: As I wrote those