Search results for

show when run

112,712 results found

Post

Replies

Boosts

Views

Activity

IOS App Install Fail Over The Air
Hi, I'm using Xcode6 and created a test app for ipad. It compiles and runs fine in simulator. My next step is to distribute it using adhoc distribution mechanism. Here is what I've done1. Using Keychain Access to create a public/private key pair.2. Load it up into Developer Center to create a certificate, then download it.3. Add my ipad UUID under Devices.4. Create a adhoc provisioning profile by including my ipad in it, I only have one device in Member Center. Let's call the provision MyProv.5. Run the .cer file by double clicking it.6. Download the .mobileprovision file from Member Center to desktop. Then double click it.Now, in Xcode, under Build Setting, I change Provisioning Profile Debug and Release entry to point to MyProv, then run Product->Archive. When archiving the app, Xcode as me if I want to use my key created in step 1 above to sign the bundle. I allow it. I also choose to Save for ad hoc distribution when asked. In the summary page, I can see the Provisioning Prof
2
0
1.7k
Jun ’15
Reply to Strong reference cycle in a closure
If you add a bit of code and run it in a playground (Xcode 7 beta):class C { var m: () -> () = {} let identity: String init?(_ name: String) { identity = name print(init (identity)) } deinit { self.m() print(deinit (identity)) } } var ci = C(a) ci!.m = { var text = reference = (ci!.identity) print(text) } ci = C(b)when ci.m is run in deinit, it actually prints out reference = b even though it is deallocating a.The closure is actually capturing a reference to the local variable c1, not a reference to the instance that c1 is pointing to at the time. So no strong reference cycle is created.
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15
Reply to Adhoc distribution for non-developer
I highly doubt they will open any loophole that allows unlimited distribution outside the App Store, if that's what you mean. I don't know whether or not ad hoc distribution will be possible without a membership or whether apps will only run when connected to Xcode, but in any case the number of devices will still be strictly limited. I would bet my bottom dollar on that.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Anyone else experiencing BT connection issues?
Unfortunately I only have one device to check with at the moment, so I can't really verify much. But after installing iOS9 on my test device, my Basis Peak can no longer connect to the phone. When in Settings->Bluetooth the Basis Peak shows up under dveices but infinitalty cycles between connected and not every second or so.Is anyone else seeing something like this?
1
0
417
Jun ’15
Reply to How to ignore errors?
In the Swift 2 Prerelease for the Swift book, it states:“There are some cases in which you know a throwing function or method won’t, in fact, throw an error at run time. In these cases, you can call the throwing function or method in a forced-try expression, written, try!, instead of a regular try expression.Calling a throwing function or method with try! disables error propagation and wraps the call in a run-time assertion that no error will be thrown. If an error actually is thrown, you’ll get a runtime error.”https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/ErrorHandling.html#//apple_ref/doc/uid/TP40014097-CH42-ID508(there is no way to deep-link to the relevant section but it's the second from last, Disabling Error Propagation.)If you have a chance to watch the video posted on the developer site from the What's new in Swift session, it's well worth it. I think that's where I saw this.
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15
Restore WatchOS to 1.0
Ladies, and Gentlemen As I am no genius on this, I guess it was just by luck that i was able to figure this out. I also was one of you that jumped the gun and installed all the Beta OS. On my Applewatch, iPad, iPhone, OS X. But as Beta goes, they are all but too buggy for everyday use. So to the good stuff. I have highlighted the info below that will help solve this head ache!!Pre-work: Make sure your iPhone that the watch is synced to and has the old back up is still running iOS 9. It will need to find the backup 1.0 Applewatch fileStep 1. Factory Restore ApplewatchStep 2. Sync Watch manually do not use the QR scanner as it only reads the 2.0 profileStep 3. Restore from backup any previous 1.0 back up. 1.0.1 backups will not work as it was an OTA updateStep 4. Let watch do it's magicAnd........wait for it, wait for it..... Repaired!! Back to WatchOS 1.0Follow OTA update back to 1.0.1 and recover your backup file.I suggest everyone remove iOS9 as well after the watch is fully restored.Thank you.Updat
14
0
2.8k
Jun ’15
watchOS 2 framework failing
I am using a custom embedded framework to make my watch extension currently work. However, when I use Xcode 7 with watchOS 2, I get a bunch of warnings, one of which offers to Update to recommended settings. Has anyone else gotten this?When I click Perform changes to update to the recommended settings, all the lines #import <MyFramework/MyFramework.h> in my watch extension interface controller files say file not found. I have checked to make sure that I am linking with the library MyFramework in the app extension, but this error still appears. Again, I wasn't having this issue prior to Xcode 7.Any help would be greatly appreciated. Thanks!Edit: I tried creating a brand new project with an Apple Watch app+extension. I created a custom framework and linked to it in my watch extension, but this error still shows up. So I don't think it has to do with the recommended settings...
5
0
5.3k
Jun ’15
Reply to WCSession sendMessage returning errors (simulator)
If you want to debug both of the processes at the same time, here's what I'd do. First, run the app on the watch simulator. Then, open up the app on the iPhone by tapping on the app icon. Then, go to Xcode, then the top menu Debug -> Attach to Process, and select the process for your iPhone app. This should have both apps running in the debugger simulatneously. Now you can insert breakpoints or whatever and ensure that you are properly activating the session on both sides.I haven't played with WCSession yet and gotten it working, but this might help you find an issue. I will give it a go when I get a chance soon hopefully!
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Reply to iOS 9 Beta battery life
Reposting this with more info:When the beta came out yesterday, I did an upgrade and not a restore. Today I litterally watched the battery percentage drop 1 percent every two minutes while I only had the home screen active (background apps disabled, location services disabled, etc). I kept checking the Settings -> Battery page and it show Home Screen at 15% of the usage, which was completely wrong.Today I did a complete restore and now things are better. The Settings -> Battery screen not only showed Photo App as the top user (I have over 8 gigs of phots and videos), but it also showed it as Background Activity. I didn't see that before I did the complete restore. Now, Mail, Messages and Calendar also show that. I'm sure the battery will still drain faster than with a production version, but at least it seems like the reporting is working correctly and it allowed me to understand what was sucking the life out of my battery.---------------------------------------------
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15