Search results for

Swift 6

49,201 results found

Post

Replies

Boosts

Views

Activity

What happens now with the new Dev program?
Hi all! I have some confusion about the new dev program. Now that everything is combined, do I still get access to XCode? I saw that it says on the Xcode 7 beta page that I can get the beta for free, but the developer plan says that I need to buy the plan to get access to software betas. I have no money to buy a plan, so I am stuck. I do not know what to do. Just as I was beginning to learn Swift and Objective-C, Apple takes away my ability to develop for free. Is there even free access after my safari plan expires on July 8th?
2
0
473
Jun ’15
Unable to run updated WatchKit app in Xcode 7's simulator
I've updated the app for watchOS 2 using the built in suggestion with Xcode 7 when you first build it. I've changed all the necessary code so there's no errors or warnings but I can't seem to run either the containing app or the watch app in the simulator; they never launch but they do copy over to the simulators.Is there a new scheme I should be using? I'm using the previous scheme for the main watch app which now automatically lets you choose between running the iPhone 6 simulator with either the 38mm or 42mm watch simulator.
5
0
1.2k
Jun ’15
Reply to iOS 9 Beta battery life
This is what I'm interested in. From a technical standpoint what causes battery life to be reduced during beta releases? The UI seems a little snappier as well as app switching and just general performance on my 6. I am also seeing the battery drain issue as per normal beta performance. Just interested in why. Obviously optimisation is key but is the OS collecting data on performance for Apple techs to analyse? And how much optimisation will apps need to do upon public release? I am finding software development more fascinating all the time :)
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Swift frameworks and unmapped SDK libraries?
Over the course of Swift's existence I've had to take advantage of a number of workarounds (i.e., hacks) to compile a Swift framework that utilizes non-modular system code, e.g., CommonCrypto, sqlite3, etc.These solutions have included:Renaming the umbrella header to be something different than the module name in order to exploit a bug that let frameworks compile with bridging headers, wherein the non-modular import happened: #import <CommonCrypto/CommonCrypto.h>Building a dummy, optional framework with a custom module map specifying the absolute path to an SDK header (relative SDK paths don't work): module CommonCrypto [system] [extern_c] { header /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/CommonCrypto/CommonCrypto.h export * }Specifying a custom module map with an additional header specifying the absolute path to an SDK header: framework module MyCrypto { umbrella header MyCrypto.h header /Applications/Xcode.app/Cont
7
0
9.7k
Jun ’15
low power mode
Hi,I am newbie to Swift development. I am wondering if there is a way for me to switch the device to low power mode from within my app? I did manage to find the url - https://developer.apple.com/library/mac/documentation/DeviceDrivers/Conceptual/IOKitFundamentals/PowerMgmt/PowerMgmt.htmlBut, not sure whether this would help me with what I am trying to do..Uday
1
0
298
Jun ’15
reboot loop
Trying to install iOS 9 on my iPhone 6. Did a backup with iTunes first, current version. Restore using iOS 9 beta 1 image.iTunes says its done the restore and is starting to restore apps when the iPhone crashes, reboots, goes to the welcome page, then pretty quickly crashes again, rinse and repeat.I might mention that my iPhone gets quite hot during this process. I'm sure its not great for the battery.I have no ideas what to try. I don't want to do a new install. Any other suggestions other than going back to 8.3?
1
0
305
Jun ’15
Reply to reboot loop
Same problem here when I used the iTunes restore. Failed back to doing an iCloud restore instead. Looked like it at least worked. But I'm on almost 24 hours and only about half of my apps have been re-downloaded so far..Almost seems like the internet connectivity is on a slow drip, battery gets warm and drains, and the AppStore is crashing or something else is making it stop or slow downloading apps. I reboot the iPhone 6 once and while and it seems to download a little bit more at a faster pace.. Not sure if I'm just going crazy. :-)
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Reply to Any news on reflection in Swift 2.0?
Thanks Dave. In particular I wanted to know if enums with associated values (i.e. union types) have reflection support.I use SwiftyStateMachine and my code base is filled with the type of boilerplate shown below. Enumerating enum case labels and getting textual representation of the label names is time consuming, error prone and increases code size considerably. I'd obviously like full reflection capabilities like .NET or Java, with full assembly metadata... looks like we'll have to keep banging out the boilerplate. Roll on Swift 3.0!// MARK: StoryBookState DOTLabelable extension extension StoryBookState: DOTLabelable { public static var DOTLabelableItems: [StoryBookState] { let items: [StoryBookState] = [.Welcome(nil), .Praise(nil, nil), .InvitationToRepeat(nil, nil), .TurnToNextPage(nil), .End] // Trick: switch on all cases and get an error if you miss any. // Copy and paste the following cases to the array above. for item in items { switch item { case .Welcome, .Praise, .InvitationToRepeat, .TurnT
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15
Reply to iOS 9 Beta battery life
Hi All.Putting my iPhone 6+ AND iPad Air 2 in Airplane Mode stops the battery drain. Something to do with the radios running full power when leaving the phone after a period of use.Toggling Airplane Mode On/OFF seems to have the same effect.Suggestion: Habitually toggle Airplane Mode when you are done fiddling with your iDevice, before putting it to sleep.Best regards...
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Reply to Converted 32bit to 64bit app Crashes
Hi Here is the latest crash logApp launch -> login -> fetch data show data for a second and crash{app_name:OIDAR,app_cohort:2|date=1433912400000&sf=143464&tid=3231324fdde256ebb12259fd91884ff385f8bc040d77173fede1785edaa01bff,app_version:2,slice_uuid:66b2d6ab-d787-3b15-95dc-a3678d6713bd,adam_id:883207563,build_version:23,bundleID:com.oidarapp.oidar,share_with_app_devs:false,is_first_party:false,bug_type:109,os_version:iPhone OS 8.3 (12F70),is_beta:true,name:OIDAR} Incident Identifier: 2C332772-B316-4FBE-9AFE-4CAA0C337F2F Beta Identifier: 87CEC1DE-409A-4204-AD9F-B36D624090BF Hardware Model: iPhone7,1 Process: OIDAR [1829] Path: /private/var/mobile/Containers/Bundle/Application/1528C051-37FB-4F76-9E6C-62ADD1EC3AE1/OIDAR.app/OIDAR Identifier: com.oidarapp.oidar Version: 23 (2) Beta: YES Code Type: ARM-64 (Native) Parent Process: launchd [1] Date/Time: 2015-06-10 13:06:25.053 +0800 Launch Time: 2015-06-10 13:06:04.297 +0800 OS Version: iOS 8.3 (12F70) Report Version: 105 Exception Type: EXC_BAD_ACCESS
Jun ’15
Swift and Mathematics
Hi all?I am an electrical engineer who has recently learnt Swift for a new project.I know Swift is an OO language but I can't resist making comparisons to other languages I have used previously in science and academia.The applications I am writing relies heavily on mathematics and I really wish Swift had more built in support for basic mathematical constructs.I was very disappointed to see Apple reserving the ^ keyword for a bitwise operation (XOR) rather than a power function as is pretty standard elsewhere.If I could have one built in function added to Swift it would be the Power function using preferably the ^ keyword.After that, why not throw in the basic trigonometric functins too? Would that be too much to ask? I don't condone bloating Swift by adding every single mathematical function in existance, just a few of these basics to make the easy stuff a whole lot quicker and more portable.Yes I know you can use overload operators and subscripts, but this just ad
5
0
25k
Jun ’15