Search results for

show when run

112,722 results found

Post

Replies

Boosts

Views

Activity

Command Line Tool - Can't link to custom Swift Framework
With OS X Yosemite and Xcode 6, it was not possible to build a Swift command line tool that link to my own made or third party Swift Frameworks.Chris Lattner well explained in June 2014 to the community that we have to wait for ABI to reach the required level of stability, and because subject to change, the Swift libraries must be embedded in each app. Since a a Command Line Tool is not a bundle, we can't embed binaries.Fast forward today June 2015 we have OS X El Capitan beta, Xcode 7 beta and Swift 2.0.Under Yosemite, using Xcode 7 I recompiled my stuff to Swift 2.0 but I still can't link my Command Line Tool to the Swift Framework.Is someone have do similar build with success ? Do I need to build and run my Coammand Line Tool under El Capitan ?If its still not possible, I would like to know when the Swift ABI is planned for enough satbility and sytem level availabilty ?Thanks,Datagram
5
0
2.4k
Jun ’15
Reply to Great. Back to square one. 0 points.
Collaborative learning, a.k.a. I think I know the answer to that, let me quick check to see if I'm right, can be a really effective self-training scheme.And the amount of basic questions that can be answered by figuratively patiently walking someone over to the reference section, pulling out the reference material, and showing them the answer they were looking for, is pretty large.Just sayin' that the criteria for I have enough expertise to answer this question isn't always particularly high. 😉And, like KMT alluded to, the real mark of prestige on the previous forum wasn't How many points do you have? but How many times have your points reset? 👿
Jun ’15
Glance Lifecycle / Getting data from iPhone
Hi all,I am working on my first watch project and am having a bit of trouble getting my glance to display the required data at the required time.Basically, I have a string that I need to get from my iPhone app and display in my glance on the watch. The string is constructed during my app delegate's didFinishLaunchingWithOptions. I am calling sendMessageToParentAppWithString in my GlanceController.swift's willActivate and awakeWithContext methods. I have implemented handleWatchKitExtensionRequest in my app delegate but I cannot for the life of me get my glance to be displayed with the IBOutlet label displaying the correct string.I believe it is a lifecycle thing that I am misunderstanding as the label immediately displays the correct string the instant that I launch the iPhone app so I know that everything is wired up correctly, so to speak. The string from the iPhone app's delegate is being delivered via the sendMessageToParentAppWithString / handleWatchKitExtensionRequest mechanism and displayed in the corre
0
0
339
Jun ’15
Reply to iOS 9 Beta battery life
I was having the same battery drain issues with the iPhone 5s. I installed the ios9 beta from a restore but noticed something was a little odd from the usual beta installs.Results from install on iPhone: iPhone ios9 beta install went smoothly but battery usage was ridiculous. I've tried the turn off/on again, hard reset, etc. and still it was going do battery life like crazy. I figured it was doing it's indexing so I just left it plugged in overnight. I did run my iHome alarm app at night though. In the morning, I noticed that it was only at 80% charge after being plugged in all night! Killed the alarm app and topped off the phone before I left the house in the morning. By the afternoon, my battery was down to 30% after light usage and down 10% after sitting idle no apps running, etc. I am downgrading back to 8.3 since my development phone is my main phone. Downgrade is going smoothly.Results from install on iPad mini (original): Restored ios9. Restored from my settings. I had several reboot
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Address Sanitizer crashes app when using two EAGLContexts
Using Xcode 7 beta, running the following OpenGL ES 2 code on Debug configuration on a iPhone 6 device running iOS 8.3, with Address Sanitizer enabled for the scheme, crashes:#include <OpenGLES/ES2/glext.h> //... EAGLContext *contextA = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES2]; if (!contextA || ![EAGLContext setCurrentContext:contextA]) { return; } GLuint renderBuffer = 0; glGenRenderbuffers(1, &renderBuffer); glBindRenderbuffer(GL_RENDERBUFFER, renderBuffer); [contextA renderbufferStorage:GL_RENDERBUFFER fromDrawable:nil]; GLuint frameBuffer = 0; glGenFramebuffers(1, &frameBuffer); glBindFramebuffer(GL_FRAMEBUFFER, frameBuffer); glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_RENDERBUFFER, renderBuffer); glFlush(); EAGLContext *contextB = [[EAGLContext alloc] initWithAPI:contextA.API sharegroup:contextA.sharegroup]; if (!contextB || ![EAGLContext setCurrentContext:contextB]) { return; } [contextB presentRenderbuffer:GL_RENDERBUFFER]; // E
1
0
1k
Jun ’15
Reply to Battery Use Worse
I also have this same issue. From what i can remember (only 2 weeks ago) i had this also on the day i got my watch, it looks like there are some background processes running wich could cause this.I found some Threats on the web wich said u need to reset the Network settings on your iphone (did this) and setup your watch as a new one instead of putting back the backup. Most users report bettter battery at day 2. I will let u know how mine is reacting today!
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Reply to Xcode 7.0 Beta Throwing Heaps of Errors, update OS X?
The first step is probably to go to the Product menu in your project in Xcode and hold down the option key and choose Clean Build Folder..., to make sure there isn't any previously compiled code causing problems because of incompatibility.I don't think upgrading OS X to the El Capitan would improve anything for you, since a lot of us are just running Xcode 7 beta on Yosemite.If you haven't already backed up your project, you might want to do that before updating the code further, just in case you end up deciding to go back and wait.Assuming there isn't isn't anything really weird going on with your project, you would just need to work your way through it fixing the errors and warnings generated by the compiler. There can be a lot of new errors and warnings because of the changes between Swift 1.2 and 2 and the updates to Cocoa, but most of the errors and warnings should be relatively trivial to fix (changing var to let, updating the old generic sort/map/filter/find functions to be called as methods,
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Reply to Play sound on watch
I'm getting one stage further than you, it's trying to play a sound at least (on the simulator I get a 'connect a bluetooth device' Alert) but on the device at the same point the apps interface freezes (but is still running as I get a haptic alert a few seconds later that I've timed) if I don't have a Bluetooth device connected and playing audio if I do.I'm using caf audio files.if let audioURL = NSBundle.mainBundle().URLForResource(Audio/Beep5, withExtension: caf) { let asset = WKAudioFileAsset(URL: audioURL) let playerItem = WKAudioFilePlayerItem(asset: asset) let player = WKAudioFilePlayer(playerItem: playerItem) switch player.status { case WKAudioFilePlayerStatus.ReadyToPlay: player.play() case WKAudioFilePlayerStatus.Failed: print(player.error) case WKAudioFilePlayerStatus.Unknown: print(unknown) player.play() } }I can't debug on the watch so I don't know if the state is ReadyToPlay or Unknown, hence the .play() there too
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Reply to Can I use Digital Crown for WKInterfaceSlider?
It should be possible indirectly.Use an InterfacePicker and add a dummy array to it with the same number of steps as the Slider, but don't show the picker in the interface (It's minimum dimensions seem to be 2x2, not sure if it's still accessible if it's Hidden, haven't tried) then in the Picker's @IBAction func pickerAction(value: Int) use that to update the value of the Slider to match.If you set the Picker's focus style to None and Indicator to Disabled then no-one needs to know it's there. In code setting picker.focusForCrownInput() will make it priority for input.The only issue I've seen with this, is if the Interface is longer than the screen the crown reverts to scrolling the page itself and not the picker. Oh and it's a bit slow to get the picker updates (on device, not simulator)
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15