Search results for

“show when run”

115,110 results found

Post

Replies

Boosts

Views

Activity

Reply to Can't fetch JSON due to NSInvalidArgumentException
I failed to catch the error. First let me show you the tweaked code:NSURLSessionDataTask *dataTask = [[NSURLSession sharedSession] dataTaskWithURL:theURL completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) { if (!error) { _downloadedData = [[NSMutableData alloc] init]; [_downloadedData appendData:data]; } else NSLog(@%@, error); }]; [dataTask resume];If I set a breakpoint in line 03, I'm not able to read the error variable because the debugger immediately jumps in my main.m which looks like this:int main(int argc, char * argv[]) { @autoreleasepool { return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); } }In the main.m the program terminates in line 03. Do you have a clue what's the reason for this weird behavior? Did I make a mistake building the NSURLSessionDataTask? Thanks in advance,Alex
Jun ’15
Reply to Techniques to realize an app deletion
I fear you're making the mistake of assuming that the user won't have multiple devices, and won't ever need to just temporarily delete your application and reinstall it.But don't you run into the same problem--User starts a game, abonds it, and never comes back--even if the user decides not to delete your game? I know I've done that a few times with various games. Start doing something, get distracted, and don't bother to delete the game because I'm too busy for even that much bother.
Jun ’15
Reply to Turn on WiFi Programatically and latch to a known SSID
If your application absolutely needs WiFi, there's a build flag that you can set which will ensure that wifi is running for your application.And the CaptiveNetworking functions are provided so that Developers can do things like custom authentication with various wifi networks. Generally, CaptiveNetwork comes into play after the user has chosen that network, it's not really a way to force the user onto that network.Otherwise, no, your Turn on WiFi and latch the phone to a known SSID is a device management function. You can't do that from a Developer written application directly. The best you can do is do that indirectly, through the use of device management profiles, or MDM software.But all that requires the owner of the device to give up control of the device. In other words, Your users only happens if you happen to be the administrator for the device, not if you're just someone that wrote an application that the user happened to install on the device.
Jun ’15
Best practice for setting CFBundleVersion automatically
With the newest releases of iOS and iTunesConnect, Apple is more and more restrictive about what´s happening in your CFBundleVersion of your Extensions.I tried to fiddle around with Run Script Build Phases, such as this:#!/bin/sh INFOPLIST_EXT=${TARGET_BUILD_DIR}/${INFOPLIST_PATH} echo Extension writing to $INFOPLIST_EXT PLISTCMD=Set :CFBundleVersion $(git rev-list --all|wc -l) echo -n $INFOPLIST_EXT | xargs -0 /usr/libexec/PlistBuddy -c $PLISTCMDHowever, this seems to work for some types of Extensions (WatchKit), but for some others it doesn´t (Today Widget). In my cases, I seem to access the $TARGET_BUILD_DIR before there´s content in it. Using $BUILT_PRODUCTS_DIR delivers the same error.Extension writing to /Users/marc/Library/Developer/Xcode/DerivedData/MyApp-focpnqzzpnqsfyaqwwocwpujmhmh/Build/Intermediates/ArchiveIntermediates/MyApp/IntermediateBuildFilesPath/UninstalledProducts/TopNewsWidget.appex/Info.plist Set: Entry, :CFBundleVersion, Does Not Exist File Doesn't Exist, Will Create: /Users/m
6
0
7.3k
Jun ’15
console output in playgrounds 7
Hi,just wondering if the console output has been removed in playgrounds 7?A console panel is available for print() statements in playgrounds 6 when displaying assistant editor, but nothing shows up in (xcode) playgrounds 7. Is this a beta bug or have console panels been deprecated?.-nick
4
0
4.4k
Jun ’15
Reply to iOS 9 Beta battery life
I've been running the phone in many different modes now, what i could se when I woke up is that there's that spinning icon right beside the operator text in the top whenever I go to the homescreen and it doesn't matter if I'm on mobile data, Wi-Fi etc. as soon as I disable any internet connection it stops, so yeah, it's doing something really heavy in the background. When I look at my phone now that background activity have stopped (without me doing anything) and the battery does not drain as fast, even with mobile data enabled and on 4G. So Apple most definitely are collecting some data at intervals when connected to the Internet. Next time it happens I'm going to connect it to my Wi-Fi and have a look at what's going on and what packets are beeing sent so one can get a clear understanding into whats going on.Disabling mobile data and Wi-Fi completely and the phone runs with no battery issues at all, with Wi-Fi enabled it runs better than on mobile data enabled. So yeah.. all in al
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
iOS 9 on iPad Air 2 drains battery like crazy
I'm finding that since i updated my (development) iPad Air 2 from 8.3 to iOS 9 Beta 1, its battery is draining like crazy. I unplugged with 100% charge last night, this morning it's alreadty dead again. It also constantly is really warm. Instruments shows blackboardd running at 20% CPU, the full time, and MobileMail running fairly high too.Mind you, this is not an ooh, i upgraded my only production-use device to a beta and now i'm complaining it's not perfect complaint, so hold back the usual snarky remarks about this. My concern is not only that this iPad is now unusable as a testing/development device, but that i'm actually worried about leaving it running like this at all, for what it might do to the CPU and the battery, long term. The only choice i'm seeing right now is powering it down completely and put it in a drawer until Beta 2 😟.
4
0
722
Jun ’15
UserDomainMask
I have downloaded some Code which had previously worked for the coder, who was able to run ok on his App.However when I try to use the code to save data to iphone memory I get an Error Message stating ...Use of unresolved Identifier UserDomainMask..I have tried using NSUserDomiainMask to replace it and that doesn't seem to solve the problem.It seems that the coder may have been using a Beta version of Xcode 6 for his App.Can anyone please tell me what should replace UserDomainMask in the code below?/ func documentsDirectory() -> string { let documentsFolderPath = NSSearchPathForDirectoriesInDomains(NSSearchPathDirectory.DocumentDirectory, NSSearchPathDomainMask, UserDomainMask, true)[0] as String return documentsFolderPath }Kind Regards.Del
0
0
341
Jun ’15
Reply to Playground not displaying output
When you create a brand new Playground, does the default Hello, playground show up in the results bar on the right?
Replies
Boosts
Views
Activity
Jun ’15
Reply to Can't fetch JSON due to NSInvalidArgumentException
I failed to catch the error. First let me show you the tweaked code:NSURLSessionDataTask *dataTask = [[NSURLSession sharedSession] dataTaskWithURL:theURL completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) { if (!error) { _downloadedData = [[NSMutableData alloc] init]; [_downloadedData appendData:data]; } else NSLog(@%@, error); }]; [dataTask resume];If I set a breakpoint in line 03, I'm not able to read the error variable because the debugger immediately jumps in my main.m which looks like this:int main(int argc, char * argv[]) { @autoreleasepool { return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); } }In the main.m the program terminates in line 03. Do you have a clue what's the reason for this weird behavior? Did I make a mistake building the NSURLSessionDataTask? Thanks in advance,Alex
Replies
Boosts
Views
Activity
Jun ’15
Reply to Techniques to realize an app deletion
I fear you're making the mistake of assuming that the user won't have multiple devices, and won't ever need to just temporarily delete your application and reinstall it.But don't you run into the same problem--User starts a game, abonds it, and never comes back--even if the user decides not to delete your game? I know I've done that a few times with various games. Start doing something, get distracted, and don't bother to delete the game because I'm too busy for even that much bother.
Replies
Boosts
Views
Activity
Jun ’15
Can not run iOS 8 simulator in XCode 7
The error message isThe iOS 8.2 simulator runtime is not available.Unable to open liblaunch_sim.dylib. Try reinstalling Xcode or the simulator runtime.I've checked XCode preferencaes -> download tab and it seems that extra simulators can not be installed.
Replies
8
Boosts
0
Views
11k
Activity
Jun ’15
Reply to Turn on WiFi Programatically and latch to a known SSID
If your application absolutely needs WiFi, there's a build flag that you can set which will ensure that wifi is running for your application.And the CaptiveNetworking functions are provided so that Developers can do things like custom authentication with various wifi networks. Generally, CaptiveNetwork comes into play after the user has chosen that network, it's not really a way to force the user onto that network.Otherwise, no, your Turn on WiFi and latch the phone to a known SSID is a device management function. You can't do that from a Developer written application directly. The best you can do is do that indirectly, through the use of device management profiles, or MDM software.But all that requires the owner of the device to give up control of the device. In other words, Your users only happens if you happen to be the administrator for the device, not if you're just someone that wrote an application that the user happened to install on the device.
Replies
Boosts
Views
Activity
Jun ’15
Reply to Using Xcode 7 for production apps
Thanks for the idea but I'd actually just like to stick with the current version of Swift for now until closer to iOS 9/Swift 2.0 release. From what I can see online this isn't possible - Swift version is tied to Xcode and you can't run an older version.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’15
Reply to Swift 1.2 and Swift 2 in the same project?
Binary compatibility mean that the compiled code remains running, not that you can continue using old source code.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jun ’15
Best practice for setting CFBundleVersion automatically
With the newest releases of iOS and iTunesConnect, Apple is more and more restrictive about what´s happening in your CFBundleVersion of your Extensions.I tried to fiddle around with Run Script Build Phases, such as this:#!/bin/sh INFOPLIST_EXT=${TARGET_BUILD_DIR}/${INFOPLIST_PATH} echo Extension writing to $INFOPLIST_EXT PLISTCMD=Set :CFBundleVersion $(git rev-list --all|wc -l) echo -n $INFOPLIST_EXT | xargs -0 /usr/libexec/PlistBuddy -c $PLISTCMDHowever, this seems to work for some types of Extensions (WatchKit), but for some others it doesn´t (Today Widget). In my cases, I seem to access the $TARGET_BUILD_DIR before there´s content in it. Using $BUILT_PRODUCTS_DIR delivers the same error.Extension writing to /Users/marc/Library/Developer/Xcode/DerivedData/MyApp-focpnqzzpnqsfyaqwwocwpujmhmh/Build/Intermediates/ArchiveIntermediates/MyApp/IntermediateBuildFilesPath/UninstalledProducts/TopNewsWidget.appex/Info.plist Set: Entry, :CFBundleVersion, Does Not Exist File Doesn't Exist, Will Create: /Users/m
Replies
6
Boosts
0
Views
7.3k
Activity
Jun ’15
console output in playgrounds 7
Hi,just wondering if the console output has been removed in playgrounds 7?A console panel is available for print() statements in playgrounds 6 when displaying assistant editor, but nothing shows up in (xcode) playgrounds 7. Is this a beta bug or have console panels been deprecated?.-nick
Replies
4
Boosts
0
Views
4.4k
Activity
Jun ’15
Reply to Error refreshing profiles in xcode
Nothing works. Upgraded to xcode 6.3.2 and now it shows Error Fetching Developer Info..Anybody have similar issues ?
Replies
Boosts
Views
Activity
Jun ’15
Reply to OS X 10.11 Beta Software Compatibility
Unsurprisingly perhaps, but xScope 3.6.3 runs, but crashes if you try and use the 'Mirror' function. This is the previous version of xScope, so maybe v4 version runs better.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’15
Reply to iOS 9 Beta battery life
I've been running the phone in many different modes now, what i could se when I woke up is that there's that spinning icon right beside the operator text in the top whenever I go to the homescreen and it doesn't matter if I'm on mobile data, Wi-Fi etc. as soon as I disable any internet connection it stops, so yeah, it's doing something really heavy in the background. When I look at my phone now that background activity have stopped (without me doing anything) and the battery does not drain as fast, even with mobile data enabled and on 4G. So Apple most definitely are collecting some data at intervals when connected to the Internet. Next time it happens I'm going to connect it to my Wi-Fi and have a look at what's going on and what packets are beeing sent so one can get a clear understanding into whats going on.Disabling mobile data and Wi-Fi completely and the phone runs with no battery issues at all, with Wi-Fi enabled it runs better than on mobile data enabled. So yeah.. all in al
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’15
iOS 9 on iPad Air 2 drains battery like crazy
I'm finding that since i updated my (development) iPad Air 2 from 8.3 to iOS 9 Beta 1, its battery is draining like crazy. I unplugged with 100% charge last night, this morning it's alreadty dead again. It also constantly is really warm. Instruments shows blackboardd running at 20% CPU, the full time, and MobileMail running fairly high too.Mind you, this is not an ooh, i upgraded my only production-use device to a beta and now i'm complaining it's not perfect complaint, so hold back the usual snarky remarks about this. My concern is not only that this iPad is now unusable as a testing/development device, but that i'm actually worried about leaving it running like this at all, for what it might do to the CPU and the battery, long term. The only choice i'm seeing right now is powering it down completely and put it in a drawer until Beta 2 😟.
Replies
4
Boosts
0
Views
722
Activity
Jun ’15
UserDomainMask
I have downloaded some Code which had previously worked for the coder, who was able to run ok on his App.However when I try to use the code to save data to iphone memory I get an Error Message stating ...Use of unresolved Identifier UserDomainMask..I have tried using NSUserDomiainMask to replace it and that doesn't seem to solve the problem.It seems that the coder may have been using a Beta version of Xcode 6 for his App.Can anyone please tell me what should replace UserDomainMask in the code below?/ func documentsDirectory() -> string { let documentsFolderPath = NSSearchPathForDirectoriesInDomains(NSSearchPathDirectory.DocumentDirectory, NSSearchPathDomainMask, UserDomainMask, true)[0] as String return documentsFolderPath }Kind Regards.Del
Replies
0
Boosts
0
Views
341
Activity
Jun ’15
Reply to How could I implement this complicated UI in iPhone
how to show a picture?
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jun ’15