xcode4

Can I use the new Xcode 4.2 Developer Preview to publish regular apps now?

淺唱寂寞╮ 提交于 2019-12-09 16:47:13
问题 Making the long story short: if I download and install the new Xcode 4.2 Developer Preview on my Mac and start developing new iOS 5 apps, can I still using it for developing and releasing iOS 4.x apps? I do not have the possibility to install two different versions of this platform right now. Probably someone amongst you has tried it and can answer. The iOS 5 beta Release Notes link associated to the new Xcode version seems to be broken. Thank you! 回答1: No, you can only submit to the app

How to set a breakpoint on “objectAtIndex:” method of a specific property in a specific class in XCode 4?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-09 15:45:28
问题 I would like to set a symbolic breakpoint on "objectAtIndex:" method of a specific property in a specific class. See the following code : @interface Foo ... @property (strong,nonatomic) NSMutableArray *fooArray; ... @end I 've tried the following things: -[[Foo fooArray] objectAtIndex:] -[Foo::fooArray objectAtIndex:] -[Foo::fooArray objectAtIndex] Foo::fooArray::objectAtIndex: Foo::fooArray::objectAtIndex Foo::fooArray::objectAtIndex() None of theses solutions work. Any ideas to do the trick

reset XCode shortcut keys

谁说胖子不能爱 提交于 2019-12-09 14:51:10
问题 how do I reset XCode4 shortcuts keys as default? XCode->performance->key binding I found I set something wrong, but cannot find a way to reset as original. How do I do? reinstall XCode4 (4G....) ? 回答1: Just click "+" to add a new Command Set and select Default (not Duplicate Default ), then delete your old set. 来源: https://stackoverflow.com/questions/5611531/reset-xcode-shortcut-keys

Xcode 4.1 Code Signing Issue

跟風遠走 提交于 2019-12-09 14:40:45
问题 I've read through many threads and can't find anything like my issue here. I think that this is a simple fix, but I just can't seem to find the answer. I'm using Xcode 4.1 Gold Master. Basically, when I archive my Mac app, it goes through all the normal processes. The build is successful. However, when I submit to the app store, I get the following message back: Invalid Code Signing Entitlements - Your application bundle's signature contains code signing entitlements that are not supported on

Good practice to use git together with svn

人盡茶涼 提交于 2019-12-09 14:23:35
问题 Subversion was popular several years ago, now git is becoming popular and more and more people want to replace Subversion with git. Problem is that a lot projects were based on Subversion. So question is how to use git together with Subversion. Do not replace svn completely, and use git. The simplest way I can figure out is to create git based on the Subversion branch code you have already checked out. Then use git to control locally. After modifications, submit to local git server, then

Mix Objective-C and C++ and OpenCV

那年仲夏 提交于 2019-12-09 13:52:53
问题 I'm coding an iPhone app and I'm using OpenCV for some image processing. I have only used it in plain C so far but now I need to use C++ to create some basic OCR. I first created a .h/.cpp file and it seems to compile fine. But I need to mix this with some Objective-C to open images and so on. I then renamed the file to .mm instead for .cpp but it won't compile! I get this error: "Statement-expressions are allowed only inside functions" in OpenCV core.hpp line 432 Line 432 is this line:

Xcode archiving iOS app as a Mac App

廉价感情. 提交于 2019-12-09 12:28:29
问题 I've got an iOS app I've built several times over the last year, and have deployed countless ad hoc builds of with no issues. However, today Xcode has decided that when archiving my app, it should treat it as a Mac App Store app, and not build an .ipa file that I can share. Git doesn't show any changes to my .xcodeproj files and I can't see any build settings that have been changed. I've got other targets in the project that still build fine, but the primary target I use for distribution is

XCode 4.2 is missing the iOS5 SDK for the Simulator

百般思念 提交于 2019-12-09 11:05:14
问题 I created an empty Single View application using Xcode 4.2 on OSX Lion 10.7.2 targeting iPhone 5. The project built happily however when launching the simulator I receive the following error message: iOS Simulator could not find the SDK. The SDK may need to be reinstalled. I then tried targeting the iPad with the same results. I removed Xcode using the terminal and downloaded a fresh copy from the AppStore. The clean installation generates the exact same error. It seems that the SDK is not

two projects in xcode4 workspaces (#import failure)

给你一囗甜甜゛ 提交于 2019-12-09 08:56:27
问题 I'm really struggling to get this to work in xcode 4. I have one project that I will reuse in many applications (networking) so I create a workspace and add my two projects. So far so good.... This is where it fails.. #import "JSONRequest.h" For no apparent reason. It auto completes the file name of the header file. I thought this had something to do with the "scheme" (also new in xcode 4) so I've tried to add my networking target in the build phase. Changing order of them... set "Shared"

Why does Xcode 4 version editor sometimes say “no editor”

痞子三分冷 提交于 2019-12-09 08:47:46
问题 In the Project Navigator, there is a little "M" next to the project file, meaning it's been modified. So I tap the Version Editor. The left side shows me the contents of the project file, and the right side says "No Editor". Same thing if I go into Source Control, Commit Selected Files... However, other files (.m, .h, .plist, etc.) all show real differences, and correctly check-in changes. Do I have this mis-configured somehow? 回答1: This happened to me before I updated to Xcode 4.0.2. I think