Tagged Questions
Xcode is Apple's integrated development environment (IDE). USAGE NOTE: Use this tag only for questions about the Xcode IDE itself, and not for general Mac or iOS programming topics. Use [cocoa] for Mac programming questions, and [cocoa-touch] or [ios] for iOS programming questions.
15
votes
0answers
673 views
How to generate .ipa file from command line with watchkit app
I have a jenkins instance that does a release build using xcodebuild. I then have a script (on Jenkins) to create the .ipa file using xcrun. this worked fine for us until now. Now we have a watchkit ...
10
votes
0answers
197 views
How to build Caffe framework XCode 6.2, iOS 8.3 environment
I am working on build caffe framework for ios, i used the Caffe master source and make files to build the framework for iOS.
I changed the OS target in CMake GUI config as ...
10
votes
0answers
567 views
Clang Error: Reference to NSUTF8StringEncoding is ambiguous
I am trying to create unit tests using the new XCTest framework introduced in Xcode 5. I have a line in one of my test cases that looks like this:
XCTAssertEqual([self.client stringEncoding], ...
8
votes
0answers
554 views
Unity in iOS Crashes in Standard Library
I'm trying to bring Unity into an existing iOS app and am having problems. Since Unity wants a very specific build setup, I've created a cocoapod for it. I'm launching Unity from a button press, and ...
8
votes
0answers
239 views
Was the origin positioning 'box' removed from Xcode 6?
This guy here. I don't see this tool in Xcode 6. Did they take it out? Can I reenable it? I use it all the time.
7
votes
0answers
1k views
Unable to launch iOS7.1 simulator in Xcode 6.2 instruments
Code which was working fine in xcode 6.1.1 now fails to launch the iOS 7.1 simulator in xcode 6.2 (but works fine for the iOS 8.2 sim).
Here is the command I am using:
instruments -t Automation ...
7
votes
0answers
673 views
iOS Xcode 6 : Change “Created by” _username_
How can I change the "Created by" when making a new file in Xcode 6.x?
Im using Mac OSX 10.10 Yosemite
The old way doesn't work:
Updating the "current" Address Book name.
defaults write ...
7
votes
0answers
261 views
Anyone have a method for moving files around keeping Xcode project and git in sync?
I have a large (hundreds of files), horribly disorganized (on the file system that is) Xcode project. I want to move a bunch of files into different folders. I want git to track the move operations, ...
7
votes
0answers
220 views
File Ownership Modification by productbuild and pkgbuild
I am trying to create an installer for a Java app on Mac OS 10.8.4. The app runs fine, and I can install it without a hitch from a zip file. I can create a .pkg installer with either productbuild or ...
6
votes
0answers
871 views
Bots can't be created from Xcode Server hosted repository
After creating a new repository on my Xcode Server, I can't access it by ssh, but I can git clone/push by https, however I encounter the follow error when create a Xcode Bot
Oct 25 12:43:46 mokii.com ...
6
votes
0answers
341 views
What do the XML Elements in an .xcscheme file do
I'm creating a rake exe for adding coverage to an xcode project. I'm using the the Gem xcodeproj. I need to create some schemes for versioning and to run the coverage scripts.
I've been building my ...
6
votes
0answers
763 views
Source Control - Discard all changes deleted my xcworkspace and I can't fix it
I was trying to undo changes on my project to the last committed Source Control state, however when I pressed 'Discard all changes' weird behaviour happened.
The first time some of the files reverted ...
6
votes
0answers
1k views
How Xcode can follow child process on debug mode?
I'm trying to implement multiple process server in C. I'd like to check child process step by step. But on default debug mode, I have no choice to follow parent process, calling fork function. And ...
6
votes
0answers
1k views
How can I mute incoming iPhone text messages programmatically?
I'm currently trying to use the AVSystemController private framework to mute system noises based on the user's selection. I'm currently muting phone calls by calling: [(AVSystemController object) ...
5
votes
0answers
183 views
Mac OS X Build Server Missing archived-expanded-entitlements.xcent file in IPA
I am trying to archive a project with Xcode 6.1.1 and Mac OS X Server 4.0.3 and OS X 10.10.2. Signing the app with a "adHoc" provisioning works within the integration. But now i got the problem, that ...
5
votes
0answers
122 views
Passing preprocessor defines from an XCode5 project to its contained sub-projects
I have a Xcode5 project (A) that is dependent on another XCode5 project (B). Project B is contained as sub-project in Project A. Project B needs to be passed a preprocessor define from project A, but ...
5
votes
0answers
166 views
xcode error when download files from sandbox
I save the files as .txt files using the following code:
FILE* file;
file = NULL;
const char *filename = [newFilePath UTF8String];
file = fopen(filename, "wb");
However, when I ...
5
votes
0answers
214 views
xcrun Unable to copy to /var/folders
I'm getting errors when trying to run /usr/bin/xcrun
/usr/bin/xcrun -sdk iphoneos PackageApplication ...
5
votes
0answers
166 views
.d file not generating on Jenkins
I just moved a couple of controller files from one group to another group and build the project on XCode. Everything works fine locally, but on Jenkins I am getting a build failure because .d file is ...
5
votes
0answers
260 views
XCode Bot Error: “internal-post-timeseries-error”
I've got the new OSX Mavericks Server set up to run the tests for my iOS project through a Bot. While the build and the tests to run and everything passes just fine, the actual integration is ...
5
votes
0answers
863 views
Xcode custom compiler which wraps and does a passthru to clang
I'm trying to implement a certain pre-compilation effect on objective-C code (explained here). I've managed to get a custom compiler in place in Xcode 5 following these helpful instructions. However ...
5
votes
0answers
1k views
Homebrew - `brew install freetds` leads to: “configure error: C compiler cannot create executables”
I'm using Xcode version 4.6.2. I am trying to brew install freetds, but I'm running into some trouble.
I read this question, but still couldn't fix my error.
First, here's the error:
$ brew ...
5
votes
0answers
554 views
AssetForURL returns nil
I'm trying to use AssetForURL method but it is returning nil.
This is the code i'm using:
-(void)addAssetURL:(NSURL*)assetURL toAlbum:(NSString*)albumName ...
5
votes
0answers
437 views
FaceBook checkin in IOS 6 and IOS 5
I have some predefined location of different stores.I want to checkin to these locations through my IOS app.How can I do it?
Here is the code I used for IOS 5
AppDelegate *appDelegate = (AppDelegate ...
5
votes
0answers
322 views
Hover Over effect in NSCollectionView
I have an NSCollectionView with a few NSViews in it. The NSView has an NSBox in it that changes color when it is selected. I want to also make the NSBox change color when hovered over.
I subclassed ...
5
votes
0answers
1k views
Running UIAutomation scripts on multiple iOS devices via Instruments command line
Are there any way to run UIAutomation scripts in multiple connected iOS devices? Currently I use instruments with -w switch along with UDID of each device?
I appreciate your ideas.
5
votes
0answers
693 views
How to set an identity preference in keychain to be used by XCode?
XCode has an "Automatic Profile Selector" under "Code Signing Identity" in "Build Settings".
Having 2 "iPhone Developer" certificates in the keychain,doesn't appear like there is a way to steer ...
5
votes
0answers
436 views
Setting up framework (OpenEars) in a non-Xcode iPhone project (MobileSubstrate tweak with Theos)
Here is the link to setting up the OpenEars framework in Xcode: http://www.politepix.com/openears/configuring
However, I'm making a tweak using Theos, so I need to configure it, manually I suppose, ...
5
votes
0answers
592 views
xcode 4.0.2 Hang in checking source control status
I am having problem with the xcode. When i start the xcode for a while, it automatically shows"checking source control status" and just hang there and the colorful wheel of loading appear. May I Know ...
4
votes
0answers
357 views
(Unity 3d) Can not start Iphone Simulator
I have Unity 5.0.2p1 Personal and Xcode Version 6.3.1 (6D1002).
Here are some steps for anyone hoping to reproduce the problem:
A new blank Unity project
IOS Player Settings > SDK Version : ...
4
votes
0answers
85 views
xcodebuild equivalent of Xcode's “Product > Build For > Testing”
I'm trying to write a script that submits iOS apps to AppThwack (a 'real device' UI testing service). Their guidance is to use the Xcode GUI and build the app using the Build For > Testing option ...
4
votes
0answers
37 views
How to clear queue of MPMusicPlayerController and add new queue when Song finished according to requirement
After every song is finished I'm clearing the queue and then adding a new queue. However, the notification (playing/paused/stopped/playing/paused/playing/paused/paused) is called multiple times. It ...
4
votes
0answers
230 views
A popup, “Failed to automatically update constraints” pops up in Xcode 6.3.1
When I added a couple of controls in my viewcontroller in storyboard and click
Resolve Auto Layout Issues -> Reset to Suggested Constraints.
The following popup appears and I cannot perform auto ...
4
votes
0answers
94 views
Print out instance in Xcode console issue
I use po command in Xcode console to check some needed information. So after I used po vc I have this:
(lldb) po vc
error: field '__FuncPtr' declared with incompatible types in different translation ...
4
votes
0answers
104 views
IOS XMPP register new user
i am using xcode 6.2 ios sdk 8.2 ,create chat application using XMPP and OpenFire Server 3.9.3, now i am trying to register new user with this method
-(BOOL)registerWithElements:(NSArray *)elements ...
4
votes
0answers
217 views
uploading multiple images from Xcode to php server
i want to upload multiple images to php server from my Xcode,when i am sending 1 image it is working well and for sending more than 1 image,the php is storing the only last image file.please help me ...
4
votes
0answers
192 views
xcode 6.1 stops showing variable values while debugging
I am having one issue related to xCode 6.1.
while debugging i put my mouse arrow pointer on the variable but it will show [0] value instead of the actual value.
when i print it in console window ...
4
votes
0answers
443 views
unable to copy symbols from this device
I try to develop app for iOs with MAC OS X Mavericks, but I haven't bought a mac, I virtualize it.
After download and install Xcode 6.1, I connect my iPad 2 on iOs 8.1 but, when my computer "copying ...
4
votes
0answers
1k views
What is pancake.apple.com?
I noticed that my app running in the simulator printed this line in the console:
RTCReporting: resolve from http://pancake.apple.com/bags/hls?version=4.12
Now, there is already a question which ...
4
votes
0answers
597 views
Creation of a Horizontal Infinite Scrolling Menu Bar in iOS
I am interested in creating a menu bar like this:
From what I have been reading, I should be doing a UIScrollView. Are there any examples online that do this with infinite scrolling (wrapping ...
4
votes
0answers
3k views
Unknown class in Interface Builder file. Xcode 6 and Swift
I started a vanilla master detail project with swift. If I add a new view controller and set the custom class, than is the module empty and it is not possible to choose a module. The error message ...
4
votes
0answers
184 views
Mysterious errors after updating to Xcode 6
I am getting mysterious console errors when building my application since I updated Xcode to 6.1 from 5. The application works fine, but I'd like to find out what is causing these errors and get rid ...
4
votes
0answers
942 views
Xcode 6 iOS8 error: app containing framework must support arm64. My app already supports arm64
I have an app who has arm64 in the valid architecutes. This app is iOS8 only.
I have a dynamic framework inside the project who supports arm64 too.
The app compile and runs without warnings both on ...
4
votes
0answers
825 views
Interface Builder unable to determine type of storyboard
Gone through all the links on google and on here and a lot didn't have answers to them. I have an app that has a MainStoryboard.storyboard and a MainStoryboard_iPad.storyboard. The iPad storyboard ...
4
votes
0answers
1k views
Xcode 6.1 (6A1046a) - invalid bundle
Today, I have installed the latest version of Yosemite (GM), and Xcode 6.1 (6A1046a).
Here is the message I get when I try to validate my iOS 8 app before submitting.
"iTunes Store operation failed.
...
4
votes
0answers
196 views
Running Today Widgets from Xcode
While I try to send my Today Extension to iOS 8 device, I face this error many times:
Lost connection to "My iPhone".
4
votes
0answers
353 views
Swift : Play Video in Landscape Mode When Fullscreen
I have this code :
import UIKit
import MediaPlayer
class ViewController: UIViewController {
var moviePlayer:MPMoviePlayerController!
var bounds: CGRect = UIScreen.mainScreen().bounds
...
4
votes
0answers
390 views
Xcode settings.bundle are not saved in setting pane on simulator
I'm adding an settings.bundle file to my application on Xcode 6 and save it without any changes. When I run the application, I can see my application's settings in setting pane in simulator but when I ...
4
votes
0answers
306 views
How to run tests sequentially in Xcode 6 beta3
From what I can see, it looks like Xcode runs tests from a given TestCase sequentially, but from different TestCases in parallel.
Is it possible to configure a project/target so that all the tests ...
4
votes
0answers
305 views
What might be the reasons for Performance tool data is high. [ showing in Xcode VM tracker]
I recently profiled my app using Xcode VM tracker instrument.I found that app has lot of dirty memory especially performance tool data. So i want to know what are the reasons of the huge dirty memory ...