Debug for iOS 3.x in xcode with SDK 4.1

I've downloaded the latest SDK from and can only pick 3.2 or 4.1 from Project > Properties > Base SDK. My iPhone is 4.1 My client have iPhone 3.x You feel the problem... How can I debug for iOS 3.x in xcode with the 4.1 SDK installed?

Xcode Can't get subview animation to appear even after alloc :)

I have a subview loaded into an UIView. In the subview's .m file I have the following: - (void)startAnimation { // Array to hold png images imageArray = [[NSMutableArray alloc] initWithCapacity:22]; animatedImages = [[UIImageView alloc] initWithImage:viewForImage]; // Build array of images, cycling through image names for (int i = 1; i < 22; i++){ [imageArray addObject:[UIImage imageNamed:[NSString stringWithFormat:@"image%d.png", i]]]; } animatedImages.animationImages = [NSArra

Xcode How to move an image

I am creating an app where bombs come into the screen and blow up this thing that you have to move. How do I make these bombs fly into the screen and move in random directions automatically ? Kind of like fruit ninja where the fruits fly out at you. How do I code that ? What do I need to do ? Please also provide some code. Thank you !

Xcode Error compiling Cython on Mac 10.6

Trying to install Cython so I can use openKinect Python wrapper. I downloaded Xcode from the appstore (no install options. lame). Im getting the following compile errors when trying to install I also tried easy_install and that failed as well. Error Code below creating build/temp.macosx-10.6-universal-2.6/Cython/Plex gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -Os -Wall - Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch ppc -arch x86_64 -pipe - I/System/L

Xcode sprites falling in cocos2d

i have 2 sprites that moving horizontly and i need them to fall down naturally ,when they hit a wall . i know how to do that in a simple way of changing position every frame, but this is not seems natural, and probably not the right way. There is a way to discover the collision and then make them fall down, when thier speed and y axis is taking into consideration ? i just couldnt find a simple way to do that with box2d or chipmunk . any direction would be great. thanx.

Implicit declaration while implementation is available in xcode

When I compile these two sources with xcode I get a warning and an error: Implicit declaration of function 'shouldHavePlayed'. (at the line with the comment) an error while linking. But if you look at the code the method is defined in the .h file, the .h file is included and rearranging the methods in the .m file doesn't solve the problem either. What is wrong with this code? TimerItem.h: #import <Foundation/Foundation.h> @interface TimerItem : NSObject { BOOL enabled; NS

Xcode Using Git for an OSX application

I'm working on an OSX application (using xcode) and all the versionning stuff is managed with git. I'm asking because I'm a bit new at this (not git, but osx applications) : which files should be commited and which shouldn't? I'm not sure what to do with the .xcodeproj and all theses folders... Thanks!

Xcode How to CLOSE View Controller

Please help me. I have "View Controller(VC) 1" + button "End" and VC 2 I want to end "VC 1" and Switch to VC2 when I touch a button "End". I tried searching online but only "Switch view"... but SWITCHING isn't ENDING

Xcode iOS 5 undeclared identifier GL_TEXTURE_RECTANGLE

I'm having trouble using a rectangular texture on iOS (iPhone 3gs or newer) I'm trying to use GL_TEXTURE_RECTANGLE and/or GL_EXT_texture_rectangle but XCODE autocomplete doesn't recognize it, i think because the proper header file is not imported and throws me the undeclared identifier error. Also tried GL_ARB_texture_non_power_of_two and GL_ARB_texture_rectangle as answered in this question OpenGL ES GL_TEXTURE_RECTANGLE but none are declared. I've googled and haven't found a reference to th

Xcode error Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-g++-4.2 failed with exit code 1

Possible Duplicate: Xcode Exit Code 1 - Duplicate Symbol When I used the OpenFeint SDK library there were more than 1,000 errors, so I changed my files' extension to .mm, but now I get this error. Can anybody help me, please? ld: duplicate symbol _iToastDuration in /Users/mymac/Faizan /ChefCookMania/build/ and /Users/mymac/Faizan /ChefCookMania/build/

Xcode Lion 10.7.3: Apple is not currently accepting applications built with this version of the OS

I was running Xcode 4.2 on Lion 10.7.2 and I have a few applications that needed updating to the Lion sandbox, so I can resubmit them to the Mac App Store (Mac, not iOS). Somewhere along the way I had a popup to update to combo update 10.7.3 and after that everything went wrong. Verifying and submitting apps was fine if the archive was compiled in 10.7.2 but if it was compiled after the 10.7.3 update it can no longer verify the app. That is right, under 10.7.3 I can still verify apps if they we

XCode 4.3 Command Line Tools

Apple has recently released Command Line Tools: What are the tools provided in the Command Line Tools package? Is there some sort of documentation other than man pages? Please note that I have installed these tools by adding the specific component in Xcode. Also, this is not about a Xcode project, but a package released by Apple on February 16, 2012!

Xcode Return to specific UITableView Cell

I have 2 views. On the second I have a UITableview where I can choose the content to view in the first window. When I return to the second view containing the UITableView, is there an easy way to return to the cell representing the content on the main page, rather than scrolling down to it? I'm assuming if I know the record number of the array that created the UITableview, which is the same array that I'm populating the main page with, then I should just be able to jump to that index numb

App appears behind Xcode when running

When I run my cocoa application on Xcode 4.3.3. using Lion 10.7.4. The application starts and appears behind Xcode. Few times it appears on front, not sure whats going on. Any one had an issue like this ? My main NSWindow is a borderless window.

Getting error in configuring phonegap with xcode

I am trying to configure phonegap with xcode in my mac mini. My Configuration : Mac OS X (10.6.8) Xcode 4.1 I followed the tutorial But I am getting error in compilation, I am not able to see Error : start page at 'www/index.html' not found instead I am getting following error: Undefined symbols for architecture i386: "_NSURLIsExcludedFromBackupKey", referenced from: -[CDVFile

Xcode Can I get the same viewcontroller object from storyboard and from code?

I have already referred Storyboard - refer to ViewController in AppDelegate. I want to ask whether it's the same viewcontroller obj as we can see in storyboard. if we code like: FirstViewController* fvc = [[UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil] instantiateViewControllerWithIdentifier:@"first"]; NSLog(@"fvc=%@", fvc); [fvc performSegueWithIdentifier:@"go2next" sender:fvc]; as I tested, it is not the same as: NSLog(@"self=%@", self); [self perform

Xcode Load UIView defined in XIB into UIView

following a post presented here, I tried to load a view defined in a XIB file into a view, currently being displayed. Basically, what I want to do is to replace the middle view (see screenshot below) with a different view when the user clicks on the button. This is the simple view I want to load into the middle view: And this is the source code of the ViewController: ViewController.h #import @interface ViewController : UIViewController @property (strong, nonatomic) IBOutlet UIButton

Xcode Guard Malloc and on Device Debugging: 'libgmalloc.dylib' image not found

I enabled memory checking in Xcode (Edit Scheme -> Options). I'm now getting the following when I perform on device debugging: dyld: could not load inserted library '/usr/lib/libgmalloc.dylib' because image not found. The measure was taken proactively in hopes of catching mistakes early in the cycle. Is memory checking not valid on a device? It appears its valid since it was acknowledged and investigated according to Also, Xcod

Xcode How to write an Internet Account Plugin for Mac OS?

There a several plugins for Mail, Contacts & Calendars on Mac OS, but I need new type of account with mail, contacts and calendars services. I don't want to add this account separately as a mail account, a contacts account and a calendars account. I googled and found no document about these plugins. I just know they are located at /System/Library/InternetAccounts/*.iaplugin Anyone know how can I create a new iaplugin? Thank you

Xcode MKMapView doesn't zoom and animate on iPad REAL DEVICE with iOS6

I have UITableView with coordinates (stored in arrays) showed on every row, and I want to center (zooming and animating) my MKMapView on these coordinates when I tap table rows. This is the simple classic didSelectRowAtIndexPath method - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { latitude = [dataSourceLatitude objectAtIndex:indexPath.row]; longitude = [dataSourceLongitude objectAtIndex:indexPath.row]; MKCoordinateRegion region; r

Xcode .gitignore for everything inside the xcuserdata folder does not ignore an xcuserstate file

I'm working in a Xcode project, and I'm trying to configure the .gitignore to not get anything inside the xcuserdata folder. I have the following .gitignore: # Xcode .DS_Store */build/* *.pbxuser !default.pbxuser *.mode1v3 !default.mode1v3 *.mode2v3 !default.mode2v3 *.perspectivev3 !default.perspectivev3 xcuserdata profile *.moved-aside DerivedData .idea/ *.hmap xcuserdata/* but every time that I build/run the project and execute git status, it still shows the following midified file: modif

How to copy a file into build target package in Xcode?

I am now working on a simple project in Xcode. This project requires me to read a config file (which would be modified in future) in app's package during runtime. The config file is manually written in the project, and should copy into target app's package. How can I achieve that? This may consists of two sub-questions as below: 1) How should I creat the config file in the project? By "New"? Or other Xcode commands or options? 2) How to make Xcode automatically copy the config file during bu

XCode 5 Core Data Model Crashes

I am using XCode5-DP3 and OSX Mavericks on my MacBook Pro, I know that XCode 5 is still a beta version, but Core Data Model is bugging me all the time. Everytime I try to open a Core Data Model file, XCode 5 shows it for 1 second and crashes. The same project and file works fine with XCode 4. I searched a lot and didn't find answer, Apple doesn't mention it in release notes either. I found someone here is having the same issue for XCode 4, but I don't think it's because y Core Data Model file,

Xcode UIDatePicker strange behavior in iOS7 inside UIPopoverController

Previously in my project, I was presenting a UIView containing a UIDatePicker object inside a pop-over controller to allow a user to make or modify a date selection. The code I use to present the control is as follows: LocationPopVC *view = [[LocationPopVC alloc] initWithNibName:@"LocationPopVC" bundle:nil]; view.delegate = self; [view loadForDate]; pop = [[UIPopoverController alloc] initWithContentViewController:view]; pop.popoverContentSize = CGSizeMake(300, 216); UITableViewCell *cell = [tab

Xcode Cyclic dependency in module 'CoreFoundation': CoreFoundation -> SpriteKit -> CoreGraphics -> CoreFoundation

I've got a perfectly running sprite-kit project cloned from github to my mac, and i keep getting multiple compiling errors as the one in the title. The project works well on all supported devices and simulators in my friends mac, which has the same Xcode Version 5.0.2, ios7+. I have no clue where I'm getting this error from, it comes from native libraries such as corefoundation. Has anyone ever seen this error before?

How can I make OpenGL draw something using VBOs in XCODE?

Good evening, Right now I'm trying to run the following code using Xcode, but it has been impossible so far. The code is a from a simple tutorial I found online, and the code is supposed to simply draw a triangle using OpenGL and VBOs. If I try the code using Visual Studio, I actually get the expected result with no problems at all. However, when I try to run the code using Xcode, I only get a black screen. To setup the project in Xcode, I installed GLEW and FreeGlut using MacPorts and then I

Is it possible to install iOS 7 SDK on Xcode 6?

I have Xcode 6 installed but realise that I am only able to develop for iOS8. I am aware that this beta development kit is meant for the development of the iOS 8 beta release but I am in a position where I don't have the time yet to develop for it but wish to take advantage of some of Xcode's new features while I am developing for my current iOS 7 apps. What can I do to get the iOS 7 SDK installed on xcode 6?

Xcode App installation failed

In Xcode 6 Beta 5, when I attempt to run my app after building, I receive an error dialog that says: App installation failed Could not inspect the application package. This happens on iOS 8 Beta 5, but not on iOS 7.1.1! I have not tested anything else. Any ideas for how I can fix this?

Xcode cannot connect to member center

When I want to connect my developer account in xCode 6, I receive this message : "An error occurred while communicating with the member center." Someone know what is the problem ? Someone can help me ? Thanks !

Xcode Actionable notification in iOS8 not opening the app

Actually i am working in actionable notification. Everything works well i am getting button trigger action but the problem is when i tap the button the app is not opening. When i manually open the app its triggering corresponding action and going to exact screen but its not happening when i tap the button. This is setup of my actionable notification NSString * const NotificationCategoryIdent = @"ACTIONABLE"; NSString * const NotificationActionOneIdent = @"ACTION_ONE"; NSString * const Notif

Xcode YASVE - SQLite Version Error

This is probably a noob question but... I finally took the plunge and updated xcode to 6 (from 3.2.6, IB plugins holdout), but kept developer target at 10.6, so I can better address all the deprecations (10.6, 10.8, 10.10) while running in Yosemite 10.10.1 server. After addressing the 10.6 deprecations (whoa) , I get a clean build but it fails on startup: dyld: Library not loaded: /usr/lib/libsqlite3.dylib Referenced from: /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork

Xcode equal spacing between uiimageview using size class

I'm trying to add four or (more in future) uiimageview in ipad application landscape mode. I want equal spacing between each uiimageview. I used wRegular hRegular format to build the application and used few constraints, but when i try to run the application in simulator i'm getting different result for different iPad devices. How can i achieve having equal spaces between uiimageview irrespective to size of the screen ? Below is the screen shots. iPad2: iPad Air : iPad Retina : Resizable i

Xcode Apple mach-o link error? Even though I imported frameworks

I'm getting a bunch of Apple Mach-O Linker errors because I'm missing some frameworks. However, when I checked the "Link binary with libraries" section of Build Phases and all the frameworks are already imported. So far I've tried removing all the frameworks and re-adding them as well as "Cleaning" (Product > clean) the app. Any ideas? ld: warning: directory not found for option '-F/Volumes/Install' ld: warning: directory not found for option '-FOS' ld: warning: directory not found for optio

xcode - Cocoapods stopped working after OS upgrade

After upgrading to OS X Yosemite, attempting to install pods gives me this error. /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- xcodeproj/prebuilt/universal.x86_64-darwin14-2.0.0/xcodeproj_ext (LoadError) from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /Library/Ruby/Gems/2.0.0/gems/xcodeproj-0.16.1/lib/xcodeproj/ext.rb:6:in `rescue in <top (required)>' from /Library/Ruby/Gems/2.0.0/

Xcode IOS App First letter of the name lowercase

I need to change the name of an app in order to have its first letter set to lowercase, I tried by simply changing the name of the app but the package name changed automatically to something like: myapp.temp_caseinsensitive_rename I then edited the package name in order to delete the .temp_caseinsensitive_rename part but now, even if the first letter of the app's name is lowercase when I install it it's still uppercase. Does anyone know what am I missing? Do I need to keep the .temp_caseinsensi

Create UML Diagram to understand class hierarchy in Xcode

I am stuck, i am working on some huge project with not enough documentation, i was thinking if there was a way with which i can generate some UML diagram of my Xcode project to understand it better. I searched a lot and everybody seem to be pretty sure that omnigraffle is the way. But when i try to use it i get this silly alert everytime "This Xcode project can be diagrammed by dragging its containing folder onto the OmniGraffle application icon." Can someone help me out on this. I am using th

Xcode Does holding a reference to values returned by mainScreen() and defaultManager() type functions optimize anything?

Some core classes use a function to return an instance of itself: NSFileManager.defaultManager() PHImageManager.defaultManager() UIScreen.mainScreen() ... If I assign the resulting value to a variable that I use n times vs just calling the function n times does it improve performance somehow? For instance let fileManager = NSFileManager.defaultManager(); fileManager.fileExistsAtPath(somePath) fileManager.fileExistsAtPath(someOtherPath); vs NSFileManager.defaultManager().fileExistsAtPath(

Xcode 8.3.2 Crashing while starting

I have updated Xcode by downloading the Xcode 8.3.2.xip file. Xcode is behaving weirdly after upgration. I am using Sierra OS with Xcode 8.3.2 and the following error dialog pops when ever i try to open Xcode. I have been trying to solve it for hours now, by trying to un-install Xcode completely and by removing the Xcode directories inside Library, etc. But nothing have worked so far. Any help is highly appreciated.

Xcode Crash on retrieving entity name?

When my app is first launched i do some first time setup configuration which is seeding my SQLLite database using the CoreData API with data from a JSON document. I do this by first getting a reference to my managed object context from my core data stack, and then calling a method which does the JSON configuration. I then call: ....(JSON conversion).... context.perform { _ = Exercise.insert(into: context, name: exerciseName, category: categoryNumber, equipment: equipment, skill: "", primaryM

Xcode How to change build after successfully submitting your app to the app store?

we submitted our app to the app store with a current version of 1.0 and a build number of 1.3.2. After successfully submitting our app it was now ready for sale. The problem now is we made a few changes and wish to upload a new build 1.3.3 but I am getting this error. "This bundle is invalid. The value for key CFBundleShortVersionString [1.0] in the Info.plist file must contain a higher version than that of the previously approved version [1.0]" I understand that it suggested to change versi

Xcode Flutter cloud_firestore package prevents iOS build after update

After I've used flutter upgrade and installed the newest version of flutter, I am encountering this problem where my project will not compile with the firestore plugin. If I remove it, the project works as intended. Here is this terminal output for flutter build ios Running pod install... 26.1s Running Xcode clean... 2.8s Starting Xcode build... Xcode build done

Xcode How to replace efficiently newline characters in Mac

Someone in our development team merged in code but with windows newline characters. And git, merging tool get crazy about it. How is it possible to replace all 0D0A -> 0A in the whole Xcode project? If I do it in Xcode, Xcode crashed.

How do I use C Module Maps in an Xcode Playground?

I have an Xcode playground and projects in a workspace, so I can import those projects into the playground. This setup works until I try to import a project that uses C module maps. The project itself imports, but I get errors such as error: missing required module 'CNIOAtomics'. Is there a way to import C module maps and packages that use module maps in an Xcode playground?

Xcode Delete on swipe, removes first item in the list when you swipe any one

Every time I swipe item in table view and delete it, it deletes the first item in the list, not the one I swipe. I tried different approaches but still doing the same Here is my view controller function, where I swipe and call delete method. func tableView(_ tableView: UITableView, leadingSwipeActionsConfigurationForRowAt indexPath: IndexPath) -> UISwipeActionsConfiguration? { let modifyAction = UIContextualAction(style: .normal, title: "Modify", handler: { ac, view, success in

How to restore Xcode default color scheme?

How to restore Xcode 10.2 default color scheme? Tried the answer from here Restore/reset default Xcode font color scheme? but unfortunately the "Default" does not appear after tapping the "plus" button. The only color schemes I can restore are the Default(light) and Default(dark) which are not the same as Default. Is there a link from where I can download a "Default" config file and paste into some Xcode folder?

Xcode 12.1 Source Control not showing all branches

In Xcode I can branch from master and push just fine. The new branch appears in Gitlab as one would expect. When I use Xcode to clone the repo into a location, it asks me which branch to clone which seems fair. What I am confused about is that I can only see the cloned branch, not the other ones. If someone else (or I on another machine) create a branch, it won't update that addition on the other Xcode. I know how to navigate branches via git in Terminal but then I don't understand why Xcode has

  1    2   3   4   5   6  ... 下一页 最后一页 共 120 页