Questions tagged [xcode5]

Xcode 5 is Apple's integrated development environment (IDE). Xcode 5.0 included the SDKs for Mac OS X 10.8 and iOS 7. *Do not use this tag unless your question specifically involves the Xcode IDE!*

Xcode 5 is an Apple integrated development environment (IDE). This version of Xcode includes the SDKs for Mac OS X 10.8 and iOS 7. It is available free on the Mac App Store and as a downloadable disk image file (DMG) from http://developer.apple.com/xcode

This tag should only be used for questions about the Xcode 5 integrated development environment (IDE) itself, and not for general Mac or iOS programming topics. Use for Mac programming questions, and or for iOS programming questions.

If the question is related to the Xcode IDE in general (not specific to Xcode 5), use the tag.

3988 questions
25
votes
2 answers

Set auto increment in Core data iOS

I am using Core Data, and want to set an auto_increment ID as one of the fields which will be unique. Is it possible to set auto_increment in iOS using core data? Can anyone help me with a small example of how to implement this? Below is the code…
Anu Padhye
  • 615
  • 1
  • 6
  • 16
25
votes
5 answers

Is it possible to run XCTest based tests under Instruments in Xcode 5?

Looking at XCTest and Xcode 5 unit testing and not seeing how to run my unit tests under Instruments in Xcode 5... Specifically I'd like to look for leaks during the test (this doesn't have to be automated in this instance, though clearly that'd be…
Dad
  • 6,388
  • 2
  • 28
  • 34
25
votes
4 answers

How to duplicate target from Xcode 5?

Seem like this feature was removed from xcode 5 ? Prior to xcode5, it is easy to duplicate any target via clicking on the target, choose "duplicated blabla", then you will get it. But for xcode5 , where is this hiding ?
Forrest
  • 122,703
  • 20
  • 73
  • 107
25
votes
6 answers

Get global tint color from code

Is there a way I can get the global tint color from my project by code? To avoid a misunderstanding I mean the global tint color, which i can set in the File Inspector.
fahu
  • 1,511
  • 4
  • 17
  • 26
25
votes
3 answers

How to scroll UITableView in Storyboard editor of Xcode 5?

Storyboard had great feature to design tables of static cells. Until XCode 5 is was possible to compose long list of cells and scroll the table to edit them. With XCode 5 the scrolling simple stopped working - instead of scrolling the table, now it…
AlexeyVMP
  • 2,386
  • 3
  • 24
  • 31
25
votes
8 answers

Xcode 5 iOS 7 CocoaPods Linker Error

I just upgraded my old project to new iOS 7. It was already using Cocoapods. I compile and run and everything works fine on the simulator and the device. I tried to archive it using Xcode and I get the following error. ld: library not found for…
john doe
  • 9,220
  • 23
  • 91
  • 167
25
votes
2 answers

transactionReceipt for in-app purchase is deprecated in iOS 7. What can I replace it with?

In iOS 7, on the SKPaymentTransaction class, the property transactionReceipt: // Only valid if state is SKPaymentTransactionStatePurchased. @property(nonatomic, readonly) NSData *transactionReceipt …is deprecated. But, in my code, I created a…
user_Dennis_Mostajo
  • 2,279
  • 4
  • 28
  • 38
24
votes
8 answers

Reference to 'X' is ambiguous

After several changes to my project I suddenly get this build error: Reference to 'kCGImageAlphaPremultipliedLast' is ambiguous and when when taking a look at the error it shows me that it is referenced 4 times: Can someone please tell me how…
HellGate
  • 708
  • 1
  • 5
  • 20
24
votes
10 answers

Test bundle could not be loaded because an unanticipated error

Recently I have started writing test case for one old static library. I have loaded the library to Xcode 5,Since Static Library is old , I have to manually add TestProject with Test Target. When I am trying "Product-->Test" , It launches emulator…
Brijesh Thakur
  • 6,768
  • 4
  • 24
  • 29
24
votes
2 answers

How can I resolve a red (moved) file in Xcode 5?

In Xcode 4 when you would move a file, you could resolve the new location of the file by clicking a button in the right menu, and selecting the new location through Finder. In Xcode 5, there is no button in the right menu and I haven't found any…
user
  • 3,388
  • 7
  • 33
  • 67
24
votes
5 answers

How to add icon 57x57 in XCode 5

I am working with Xcode 5 and created 3 icons iphone-58.png iPhone-80.png iphone-120.png When I created my projected I dragged and dropped these three icons into image.xcassets. see screenshot. Now when I compile my project I get this error that…
Sam B
  • 27,273
  • 15
  • 84
  • 121
24
votes
3 answers

What are the advantages of XCTest over SenTestingKit?

I want to do unit testing in iOS. By default test classes are created using XCTest framework classes in Xcode 5. I have used SenTestingKit in earlier versions of iOS. What are the differences between these two frameworks? What are the advantages of…
sridevi
  • 617
  • 1
  • 6
  • 15
24
votes
2 answers

CGBitMapContextCreate Method Causes Compiler Warning Xcode 5 not Xcode 4

I just updated Xcode from version 4.6.2 to 5.0, and after doing a method in my project (created in Xcode 4.6.2) is suddenly giving a compiler warning. I have tried re-opening the project in both the old and new versions of Xcode, and I have…
jac300
  • 5,182
  • 14
  • 54
  • 89
24
votes
5 answers

where can I find iOS 7 simulator?

I have downloaded the xcode5_GM_seed and install it, but I cannot find iOS7 simulator in components. Where can I find iOS 7 simulator?
ahznsgxb17
  • 289
  • 1
  • 2
  • 6
23
votes
3 answers

Load app icon from xcassets

I'd like to display the app icon inside my app. The icon is in the default assets catalog (Images.xcassets). How do you load it? I tried the following and they all return nil: image = [UIImage imageNamed:@"AppIcon"]; image = [UIImage…
hpique
  • 119,096
  • 131
  • 338
  • 476