xcode4

Where is the 'Revert' option in Xcode 4's Source Control?

不问归期 提交于 2019-12-18 05:55:13
问题 I'm using SVN in Xcode 4 as my source control; but can't see any option to revert to an older revision? Either a 'revert' or an 'update to revision' command? The 'Update' option always seems to update to the HEAD. Of course - I can do this on the command-line, but can't believe there's no way to do it within Xcode... Does anyone know where it's hidden? Or is there really no such option? 回答1: Unfortunately the SCM functionality in 4.0 is fairly limited. You can commit, switch branches, branch

Debugger steps deeper when trying to step out of C++11 std lib

前提是你 提交于 2019-12-18 05:49:22
问题 I'm using (Apple) LLVM 4.1 within Xcode 4.5 (but I saw the same thing in an earlier beta). I have it targeting C++11 and am using libc++ (the new, C++11 enabled, LLVM version of the std library). In a debug build, if I try to step over code that calls into a std library function (e.g. a std::vector constructor) the debugger stops in the std lib implementation and if I try to step out it steps even deeper! It can take several (sometimes 10 or more) step-outs before I get back to my own code

Setting up SDL on Mac OS X Lion with Xcode 4

旧城冷巷雨未停 提交于 2019-12-18 04:54:18
问题 I've been trying to get a super simple SDL program to work. I'm using Mac OS X Lion. I've got SDL to work in Snow Leopard, but it doesn't seem to want to work in lion. So far I have this: #include <iostream> #include "SDL/SDL.h" using namespace std; /* #ifdef main # undef main #endif */ int main( int argc, char* args[] ) { SDL_Surface* hello = NULL; SDL_Surface* screen = NULL; SDL_Init( SDL_INIT_EVERYTHING ); screen = SDL_SetVideoMode( 640, 480, 32, SDL_SWSURFACE ); hello = SDL_LoadBMP(

When and how to use Aggregate Target in xcode 4

巧了我就是萌 提交于 2019-12-18 04:41:39
问题 I was trying to look for an example of using an Aggregate Target in Xcode4, including its purpose and why a developer should use it. Do you have any reference link, especially from Apple Developer web site? 回答1: Aggregate Target Xcode defines a special type of target that lets you build a group of targets at once, even if those targets do not depend on each other. An aggregate target has no associated product and no build rules. Instead, an aggregate target depends on each of the targets you

Unable to open executable - xcode

╄→尐↘猪︶ㄣ 提交于 2019-12-18 04:39:16
问题 I'm getting this error...any idea how to solve it? GenerateDSYMFile /Users/fmota/Library/Developer/Xcode/DerivedData/PBTest-gvudadeakgzklbekugyiqyfyprlt/Build/Products/Debug-iphonesimulator/PBTest.app.dSYM /Users/fmota/Library/Developer/Xcode/DerivedData/PBTest-gvudadeakgzklbekugyiqyfyprlt/Build/Products/Debug-iphonesimulator/PBTest.app/PBTest cd /Users/fmota/Documents/Developer/Protobuf/PBTest setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:

Why can't XCode 4 find my .h files during a build?

与世无争的帅哥 提交于 2019-12-18 04:23:10
问题 I have a project that won't build because the compiler (?) can't seem to find the .h files. I have tried using the full path, relative path and setting the Project Search Paths (both Header and User Header) and nothing seems to work. What I find very strange is even with the full path it gives an error: No such file or directory (the file does indeed exist in the specified path). Can anybody give some suggestions on what could be the problem? I would certainly appreciate it. import statements

XCode 4.3.1 breaks validation of apps with directories added by reference. Any workaround?

て烟熏妆下的殇ゞ 提交于 2019-12-18 04:09:33
问题 I've discovered that Xcode 4.3.1 has a serious issue validating apps with resources within a directory tree inside an application bundle. Apps can pass validation within the Xcode "Build for Archive" process - it only fails when the validation is run via Organizer, which is required to save for ad hoc or App Store submittal. After spending hours trying to trace down the usual code signing entitlement issues, I eventually noticed the following line in the system console when the export fails:

Visually arrange subviews in a large UIScrollView

匆匆过客 提交于 2019-12-18 03:23:23
问题 One of the screens in my app has to be vertically scrollable. Its contents is more or less static, but it doesn't fit on the phone's screen (hence the scroll view). I'm using a UIScrollController as a top view, and I'd like to use the storyboard editor in Xcode to lay out all the views in it. Can I do that? I can obviously drop things on the visible part of my UIScrollController , but can I put more views "below the fold" visually? 回答1: There is another way to do it that is different from the

Xcode 4 + SVN = working?

心已入冬 提交于 2019-12-17 23:43:09
问题 I have a VPS with Centos running. I have setup subversion on the VPS. While setting it up in Xcode, Xcode reports that everything is fine. When I import a project however, Xcode gives a warning: Authentication realm: <svn://**********.net:3690> **********-********** Password for 'svn': Authentication realm: <svn://**********.net:3690> **********-********** Username: svn: Can't read stdin: End of file found I can't even create directories, but Xcode reports that it can connect to it fine. I

Cannot find window-based application on XCode

寵の児 提交于 2019-12-17 23:38:06
问题 I am using XCode 4.2 and for some reason I cannot find the template for window-based application. Is there an extra step that I need to take here? 回答1: There is no longer a Window-based Application template starting from Xcode 4.2. You have two other choices of "bare-bones" templates: View-based Application template, which gives you a view on a storyboard to start with. It is similar to the one found in previous versions, except the view now resides on a storyboard which Xcode 4.2 makes use