Search results for

Swift 6

49,211 results found

Post

Replies

Boosts

Views

Activity

Reply to Battery Use Worse
I expected an increase of iPhone battery usage, but not at this level. 100% at 6:00 PM, 61% at 8:00 PM. There has been no physical interaction, on my part, with the two devices (iPhone 6 and Apple Watch) during this period. This is terrible, even for a Beta release. iOS 9 is Alpha at best!I hope there is a point release in the very near future. I cannot build and compile that fast!
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]; // EXC_BAD_AC
1
0
1k
Jun ’15
Xcode 7.0 Beta Throwing Heaps of Errors, update OS X?
Hello everyone,I just updated my iPhone 5S to iOS 9 Beta and Xcode to Xcode 7.0 Beta. I really regret doing this, since it messed everything up with my current projects in Xcode. I guess I just got excited to get the latest and greatest features. Anyways, Xcode is throwing tons of errors on my app. Some of them don't even make sense. Linker command failed, Unable to open executable MyAppTests. Stuff like that. I have tried the 'Convert to Latest Swift-Syntax' and that didn't seem to do anything with the errors.Should I update to the El Capitan Beta in order to elminate these errors? Or will that have absolutely no impact on my issue?Thanks in advance,I wish I had just waited for the GM updates.-Me
2
0
360
Jun ’15
Unable to Migrate App to WatchOS 2
When I opened my project for the first time in Xcode 7, I was given the option to convert all of my code to Swift 2, which I did. But my WatchApp was never updated to WatchOS2. Now when I try to change the Base SDK, Xcode just crashes on me. Is there any other way to migrate my WatchApp and WatchKitExtension to WatchOS 2?
0
0
333
Jun ’15
Reply to Apache Thrift
That is what I'll try at first. We'll see what the bridging brings with the new Xcode 7 and Swift 2. I never tried it with earlier versions but it didn't look to be very seamless.Thanks/Peter
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15
Reply to IdentifierForVendor changed unexpectedly + forum is broken
Hi jeroWe had exactly the same problem with an app that has been published for sale on June 6. Several updates of the app before that date kept the identifier. Now all our users got a new identifier, which breaks our device verification.I would be very interested if this is a one time problem or if this change is permament.I made no major change on the provisioning profile recently.
Jun ’15
Reply to iOS 9 Beta battery life
Last night i set the iPhone 6 to Airplane Mode instead of DND.7 hours Airplane Mode -> after wake up still 100% battery.deaktivated airplane mode and only read the answers here (13 eMails). Battery 95% in less than 10 minutes.poor battery life depends definitely with network activities together.only deactivate mobile data has no effect on my phone.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Compiler crash
Has anyone else seen anything like this?Assertion failed: (D->getSourceRange().isValid()), function buildDeclarationRefinementContext, file /Library/Caches/com.apple.xbs/Sources/swiftlang/swiftlang-700.0.38.1/src/swift/lib/Sema/TypeChecker.cpp, line 946. 0 swift 0x0000000109a08e0b llvm::sys::PrintStackTrace(__sFILE*) + 43 1 swift 0x0000000109a0954b SignalHandler(int) + 379 2 libsystem_platform.dylib 0x00007fff8b16cf1a _sigtramp + 26 3 libsystem_platform.dylib 000000000000000000 _sigtramp + 1961439488 4 libsystem_c.dylib 0x00007fff96a5bb53 abort + 129 5 libsystem_c.dylib 0x00007fff96a23c39 basename + 0 6 swift 0x000000010806de92 (anonymous namespace)::TypeRefinementContextBuilder::walkToDeclPre(swift::Decl*) + 1058 7 swift 0x000000010813cf5d (anonymous namespace)::Traversal::doIt(swift::Decl*) + 157 8 swift 0x0000000108141244 (anonymous namespace)::Traversal::visitNominalTypeDecl(swift::NominalTypeDecl*) + 164 9 swift
8
0
1.4k
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 prepareForSegue vs. pushViewController
It's closer, but it should be called dataHasChanged or something similar, not reloadTableView. The fact that it's currently displayed in a table view should be an implementation detail known only to the detail VC. The message you send should have a higher level meaning. Picture the case where you decide to display it in a collection view, a page view controller or some other UI widget. Your source VC shouldn't have to care.Anyway I apologize that I seem to have missed the real problem with your prepareForSegue. You shouldn't instantiate the VC from the storyboard. That is already done for you by UIKit when the segue is performed. You just access the destination view controller of the segue via the segue.destinationViewController property. So it would be something along the lines of let feedVC = segue.destinationViewController as FeedViewController. Maybe some ? in there... I don't do Swift yet. 🙂
Jun ’15
Reply to Two Generic Types or One
I don't understand what you mean by That is, am I missing something that prevents using only 'class'?.Anyway, are you really sure that the best thing you can do is to do it without using protocols?Even after watching the WWDC 2015 video Protocol-Oriented Programming in Swift? : )
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15