Search results for

Xcode

92,315 results found

Post

Replies

Boosts

Views

Activity

Re: New LLVM compiler introduces hang using gcd
I originally posted this problem in the old devforums, and now have a reduced test case.I still don't understand what's fundamentally the issue here, but basically the new compiler is somehow allowing a block to get added to a GCD queue twice in some situations. In the following code, the 10 worker blocks each do their thing and the parent block waits until they're all done. This used to work really well (through Xcode 5.1.1), but now, occationally, one of the worker threads will get added to the queue *twice*.Jeffreyint main(int argc, const char * argv[]) { @autoreleasepool { dispatch_group_t group = dispatch_group_create(); dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0); NSUInteger totalWorkers = 10; NSMutableArray *workers = [[NSMutableArray alloc] init]; for (NSUInteger iWorker=0; iWorker<totalWorkers; iWorker++) { __block int numThreads = 0; workerType worker = ^{ numThreads++; if (numThreads>1) { NSLog(@Whoops! Called by two threads); } int y = 0; for
7
0
1.2k
Jun ’15
Do we still need to add devices to the portals?
The developer homepage says that with Xcode 7, a person can run their app on their device, even if they do not have a developer membership.Do the devices still needed to be added to the portal? Xcode seems to imply that they do, but I would like to clarify because we have a lot of devices (some broken, some lost) and would like to not have to add devices just to test the app (Adding to the portal to install betas is fine)
0
0
320
Jun ’15
I have created a gitignore file but xCode is not using it so I get merge source code errors, what have I done wrong ?
I have been compiling my App for a couple of years now no problem and it has been using my gitignore quite happily.All of a sudden something has gone wrong and now, when I try to merge a branch back to master I get an error related to xcuserdata, which it should be ignoring.I therefore assume that xCode is no longer fidning my gitignore file.My gitignore file is called default.gitignore.Where in xCode do I define where to look for my gitignore file ? I have forgotten and can't seem to find a reference telling me where to find it.Any guidance much appreciated.Thanks,Guy
1
0
3.2k
Jun ’15
Watch app does not update...
I can not get the CMD-R run function to update my watch display. I have made changes to my storyboard yet when I run the app again (and again), there is no change in the view. My changes to the view include resizing and changing the alignment of a group within a group. I've delete the app from my phone and had mixed results with running the app again. Sometimes the app won't appear on the watch face with the xcode display showing Waiting to attach. What techniques do I need to use to avoid any associated bugs or other issues with the two devices communications to get through the development process with less hassle?
1
0
189
Jun ’15
directions search in iOS 9 fails with SSL error
When making a call to get directions, e.g. MKDirections calculateDirectionsWithCompletionHandler:(MKDirectionsHandler)completionHandler...in iOS9 simulator, every call fails with an SSL error. Here's the error trace:2015-06-13 13:33:35.302 DriveTime[2007:362234] CFNetwork SSLHandshake failed (-9824)2015-06-13 13:33:35.304 DriveTime[2007:362234] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9824)2015-06-13 13:33:35.305 DriveTime[2007:361377] PBRequester failed with Error Error Domain=NSURLErrorDomain Code=-1200 An SSL error has occurred and a secure connection to the server cannot be made. UserInfo=0x7fb1bb2085f0 {_kCFStreamErrorCodeKey=-9824, NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?, NSUnderlyingError=0x7fb1b23b6f90 An SSL error has occurred and a secure connection to the server cannot be made., NSLocalizedDescription=An SSL error has occurred and a secure connection to the server cannot be made., NSErrorFailingURLKey=https://gsp-ssl.ls.apple.com
9
0
41k
Jun ’15
Creating an IBOutlet or IBAction from a UIButton within a UITableViewCell subclass in a static UITableView
Hello,I'm trying to create an IBOutlet from a UIButton that lives in a UITableViewCell subclass in a static UITableView. I've set the custom class for the appropriate cell in my storyboard. I've added the UIButton as a subview of that cell's content view. However, I can't control+drag from the storyboard into my custom cell swift file. Is there any way to accomplish this?I'm working in Xcode 6.Thank you.
2
0
3.4k
Jun ’15
Problem with Overlapped Textures and Transparent Pixels
Sorry if this is the wrong place to post, but like many others have pointed out there is no spot in pre-release for xcode 7 questions (please move message if I'm wrong).I am building a single image by overlapping two or more images.I'm using a texture atlas containing layer 1, 2, 3, etcI set the anchor point to 0,0I draw the first imageI load the next imageset the anchor to 0,0and draw it on top of the first.the first image is 14 pixels wide and 14 pixels tall (no transparent pixels)the second image is also 14 pixels wide and 14 pixels tall, but it has a fully transparent pixel around it (so the actual image is 12x12)In xcode 6 I would see the second image centered on top of the first.in xcode 7 I see the second image position in the bottom left corner of the first image. It appears to be cropping out the blank pixels.I know in the past people have suggested using a 1% alpha pixel rather than fully transparent to work around this issue. However, I did not have this issue in xcode
6
0
1.4k
Jun ’15
about bluetooth Ble communication between mac os x and android 5.0
I developed a program which establish communication by BLE. it works normal between mac 、ios、mac。but when try to establish communication between mac osx and android 5.0.x ,it fail。Then I debuged it,it maybe bug:- (void)peripheral:(CBPeripheral *)peripheral didDiscoverCharacteristicsForService:(CBService *)service error:(NSError *)error{ if (error) { NSLog(@Discovered characteristics for %@ with error: %@, [service.UUID UUIDString], [error localizedDescription]); return; } for (CBCharacteristic *characteristic in service.characteristics) { NSLog(@characteristics uuid:%@,[characteristic.UUID UUIDString]); if ([characteristic.UUID isEqual:[CBUUID UUIDWithString:READ_CHARACTERISTIC_UUID]]) { / int properties = characteristic.properties; / int notifyable = properties & 0x10; if(notifyable!=0){ NSLog(@准备监听characteristics uuid:%@,[characteristic.UUID UUIDString]); [peripheral discoverDescriptorsForCharacteristic:characteristic]; / [peripheral setNotifyValue:YES forCharacteristic:characteristic]; } } if
4
0
1k
Jun ’15
Xcode 7 - can not create local repository, commit files.
I have downloaded and installed Xcode 7.0b (7A120f), and created new project with the Source control - Create Git repository on.However, after the project is created I see the local branch is missing and I can not commit files (Commit files does nothing).What has been noted:1. When Xcode is started the following error is presented: Couldn’t communicate with a helper application.2. When I open the Source control - Commit, I can see Loading remotes... (should be No Remotes Available).PS: Xcode 6 is working fine wit git (git version 2.3.7 (Apple Git-57)).Will be glad for any help to fix it.
10
0
7.7k
Jun ’15
Matching Xcode color space with Digital Color Meter
In Xcode Interface Builder, I use Digital Color Meter to find the color code of an item as follows:http://i.imgur.com/SFsKoG0.pngThe values for (R,G,B) are (255,172,40).Then I select a label to set it's color same. I proceed as follows:http://i.imgur.com/xGbIV9o.pngHowever, now when I use Digital Color Meter to detect the newly assigned color, I find instead of (255,172,40), I get (253,156,32).http://i.imgur.com/X4yN4qw.pngHow can I make the color of both items match?
1
0
606
Jun ’15
Problem: Can't validate archive / The request timed out
When I validate an archive in XCode I now always get an error saying iTunes Store operation failed / The request timed out after exactly 30 minutes. (XCode->Archive->Validate...)I've recreated both the certificates and the provisioning profiles which didn't help. I then noticed that I don't get the error when I validate archives built from an older version of the app (fetching old version from source control & building archive & validating).Everytime I build the first version that includes GoogleMaps (1.10.1) I get that problem. When I remove GoogleMaps from my newest version the problem disappears. Due to the unspecific error message and to the fact that Apple support hasn't been able to help me yet I'm running out of options.Any ideas what could cause that problem?Any suggestion how I could find out more about the problem? (e.g logs, workarounds, different ways of doing the same etc...)Thanks for any input!
1
0
692
Jun ’15
Simulator Keyboard Lag
Good morning, I hope someome can quickly help me (I have done a search for this little issue already). I'm runing XCode 6.4 on OSX 10.11 El Captian Beta 1. When running apps (Any App) in the iOS Simulator I'm getting terrible lag when pressing keys on the keyboard. it takes a good few seconds for the simulated app to respond. I put together a dead simple Heres a text field, enter some text app and it behaves in the same way.I'm pretty new to development so I'm not sure if I'm missing somethign blindingly obvious. Can anyone cleverer than me help?CheersTanjuakio
4
0
1.7k
Jun ’15
InterfaceBuilderKit Reference?
Hi,I was wondering if there's a definitive reference / guide to the InterfaceBuilderKit?The only references I can find are the ones dating back to Xcode 3.x... Since then, alot of the ability to interface with XC seems to have vanished.Any pointers would be really handy.ThanksAde
0
0
420
Jun ’15