xcode4.6

Xcode has the wrong debug values while paused in the debugger

纵饮孤独 提交于 2021-01-27 10:38:09
问题 I am having a strange problem in Xcode. After I use insertObject:withIndex: on this NSMutableArray object, the debug window shows the wrong value for the array even though the correct values are show for the other locals and this assertion is one step away from passing. I noticed this was happening in the application I was developing, because it seemed the method on that object was not working correctly. I wrote the unit test to demonstrate the issue I was having, and expecting it to fail,

Modal segue, navigation bar disappears

感情迁移 提交于 2020-01-18 21:32:52
问题 I'm using Xcode 4.6.1 to code on Objective-C. I want to know how can I keep the navigation bar shown when I create a modal segue between 2 View controllers, because I'm doing the segue in the storyboard and when I run the application the navigation bar of the second view controller disappears, and I have a done button on that bar but I can't see it. 回答1: Modal segues take over the whole screen, so any navigation bars, tool bars, or tab bars that are in the presenting controller will be

How to disable new Xcode 4.6 warning for whole project ? “… used as the name of the previous parameter rather than as part of the selector"

孤街浪徒 提交于 2020-01-03 18:34:21
问题 I know how to fix it by inserting whitespace before : , but I have it know in bunch of files after upgrade and this is not important problem for me. I am searching for it in build settings but none seems to address this. Thank You. 回答1: So I found this for single file : #pragma clang diagnostic ignored "-Wmissing-selector-name” Name I got from here: https://github.com/eerolanguage/clang-trunk/blob/master/test/SemaObjC/warning-missing-selector-name.m So I put it in precompiled header “Project

Xcode 4.6 automatic entitlement not working - “no valid aps-environment”

别等时光非礼了梦想. 提交于 2019-12-24 02:19:05
问题 I'm getting the famous error: Failed to get token, error: Error Domain=NSCocoaErrorDomain Code=3000 "no valid 'aps-environment' entitlement string found for application" UserInfo=0x413be0 {NSLocalizedDescription=no valid 'aps-environment' entitlement string found for application} I am able to fix it by editing the following file: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/Entitlements.plist And manually adding the aps-environment key

Xcode 5 “Missing compiler spec LLVM 4.2” error

不想你离开。 提交于 2019-12-24 01:37:23
问题 I am currently trying to build my project in Xcode 5. Build fails with error: Dependency Analysis Error: missing compiler specification <XCCompilerSpecification: Some memory address here :'com.apple.compilers.llvmgcc42':MISSING:Default> for file for all code files in project. The project used to be built in Xcode 4.6 with LLVM 4.2 and now Xcode 5 only supports LLVM 5. So there is obviously something related to that here. I have set the build settings in Xcode 5 to use LLVM 5 and the build

How did my Xcode project get changed from iOS project to an OSX project?

拈花ヽ惹草 提交于 2019-12-22 08:55:52
问题 I've been doing only iOS development and never made an OSX app. In the iOS project I'm working on now I see that suddenly Xcode thinks it's an OSX project. The all my framework files are shown in red (missing), and lots of the options in the project panel show choices that are only appropriate for OSX such as "deployment target", which offers only 10.4, 10.5, 10.6 etc. and in Build Settings the Valid Architecture shows i386 x86_64 with no drop-down options. What happened? How can I change

How do I quickly inspect the value of an arbitrary variable in Xcode 4.6.x?

纵饮孤独 提交于 2019-12-22 04:28:23
问题 It seems reasonably widely acknowledged that it is slow to use the po command in Xcode 4.6.x. What are the options for inspecting the values of arbitrary variables unspecified at compile time (which rules out usage of NSLog() ) which don't take > 15s? 回答1: Just set a breakpoint where you want to learn the variables' value. Once the program is paused, a summary of all the variables' value will appear on the Varibles view on the left-bottom of the screen. Here is a screenshot : 回答2: You can use

.app file not found in Derived Data

房东的猫 提交于 2019-12-21 03:39:10
问题 When trying to compile my project I am getting this error and am wondering if anyone knows how to fix it? I've read every answer on SO and elsewhere on the internet pertaining to this kind of linker error. I've tried so many solutions, including the very popular --delete derived data in xcode, quit xcode completely, delete it again on the command line and then restart xcode-- still nothing. This started after I tried to attach a device to my computer (which I've since deleted from the

xcode 4.6 Target Build Setting missing the “Apple LLVM compiler 4.2 - … ” sections

坚强是说给别人听的谎言 提交于 2019-12-20 02:29:08
问题 In xcode 4.6, I created a new project with multiple targets. One of my targets, an empty iOS application, is missing all of the "Apple LLVM compiler 4.2 - ..." sections from the Target Build Settings. Anyone else seen this? Any idea on how to get them to display? I am able to replicate the situation consistently in six steps: Start xcode 4.6 File --> New --> Project... Select an OS X Framework & Library --> Bundle (accept all defaults) In that project, File --> New --> Target... Select an iOS

Method returning value from asynchronous block with FacebookSDK

荒凉一梦 提交于 2019-12-18 05:15:05
问题 What I am trying to do is a Facebook wrapper for the Facebook iOS SDK. Basically the idea is that my ViewController should do nothing but showing ex. my friends that will be acquired with a simple call like self.friends = [FacebookWrapper myFriends]; [self.tableView reloadData]; My wrapper myFriends method should look like this + (NSArray *)myFriends { __block NSArray *friends = nil; [FBSession openActiveSessionWithReadPermissions:nil allowLoginUI:YES completionHandler:^(FBSession *session,