Search results for

file uri scheme

78,481 results found

Post

Replies

Boosts

Views

Activity

Xcode 7: <unknown>:0: error: no such file or directory: '"-Onone"'
I took my existing project, ran the project and Swift migrations and now I get the following error when trying to compile.<unknown>:0: error: no such file or directory: '-Onone'I've tried starting over and building without the migrations and it still doesn't work.My project is a hybrid Swift and Objective-C project. The build appears to be failing when trying to compile the Swift module which appears to be for the Watch extension.CompileSwiftSources normal i386 com.apple.xcode.tools.swift.compiler cd /Users/MrRogers/Development/MyProjectPath export PATH=/Applications/Xcode-beta.app/Contents/Developer/Platforms/WatchSimulator.platform/Developer/usr/bin:/Applications/Xcode-beta.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -incremental -module-name MyProject_WatchKit_Extension -Onone -sdkSo I removed it from my project and I get the same error message when trying to compile the Swift
1
0
3.8k
Jun ’15
Reply to [UIApplication canOpenURL]?
Thanks for pointing me to the right direction. I could solve my issue now.For all developers having the same issue, the solution is to add a whitelist of all URL schemes your App may need to call into the Info.plist. The key to add is LSApplicationQueriesSchemes and its value is an array with all the URL schemes.Of course this still kills many Apps which offer services to other Apps via X-callback-URL protocol, but at least this will work for many other Apps.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Help with third party App developer
HelloI am new to all of this and apprecaite any help that I can get.I am having a third party developer make me a simple app for iOS and Android.The developer is saying that it is a Corona based iTunes app.In order for me to test this app he is saying that I need to purchase an Enterprise Developer Account and to send him the account details so he can deploy it and I can play on my devices. He says to make sure to create a CORONA based iTunes and gives me the following steps: login then click on developer account then packages then cocoa select corona and then click on platform select iphone and android then select languages lua objective C android SDK java platform then click on soft in that select supported files then click on yes buttion then click on packages select packagesDoes any of this make sense to anyone?I have tried to enroll in an Enterprise Developer Account but it only allows me to sign up for the Individual Developer account.The developer is saying that I cannot use an Individual Deve
3
0
1.6k
Jun ’15
Reply to Enum's rawValue initializer hidden, sometimes?
It looks like a bug, where the init(rawValue:) initializer isn't being created (or isn't available) if you have defined any other initializers. Presumably it still works in playgrounds because the line-by-line compilation creates a state where the enum exists and your custom initializers don't yet.Unlike the other automatic initializers for other types, the documentation doesn't say that it isn't created if you define other initializers. (The documentation explicitly states that default initializers for structs and classes, and member-wise initializers for structs, aren't created if you define your own initializers.)I would recommend filing a bug with Apple, so that either it gets fixed or the documentation gets updated to reflect its behavior (if it's intentional so that all automatically generated initializers have similar behavior).
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15
Reply to Can watchOS send a local notification?
I just found out about the WatchConnectivity Framework: https://developer.apple.com/library/prerelease/watchos/documentation/WatchConnectivity/Reference/WatchConnectivity_framework/index.html#//apple_ref/doc/uid/TP40015269The Watch Connectivity framework (WatchConnectivity.framework) provides a two-way communications conduit between an iOS app and a WatchKit app on a paired Apple Watch. Apps use this framework to pass files and data back and forth. Live communication is possible when both apps are active; otherwise, you send data in the background so that it is available when the other app launches.So yes, you can request pedometer data from the Watch app in the background!
Topic: App & System Services SubTopic: General Tags:
Jun ’15
Inspect WebView in Mac Application
Hello,What is the proper way to inspect a WebView in a Mac application?I can access any iOS simulator or connected device through the Safari Develop menu just not any Mac apps (The entry for the Mac lists No Inspectable Applications).All the Mac apps are launched by Xcode and the scheme is set to debug.Is there something I am missing or are Mac apps not supported? I tried to search the documentation but found nothing.Thanks.
5
0
19k
Jun ’15
Abort trap: 6
I'm getting an Abort Trap: 6 after bringing in over a project from XCode 6.3. Here's what I'm getting in 7.0:CompileSwift normal x86_64 /Users/mike/Cocoa/BitBucket/bassoon-fingerings-3.0/Bassoon Fingerings/MusicStaffView/MusicStaffViewElementLayer.swift cd /Users/mike/Cocoa/BitBucket/bassoon-fingerings-3.0 /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -c /Users/mike/Cocoa/BitBucket/bassoon-fingerings-3.0/Bassoon Fingerings/MusicStaffView/MusicStaffViewElement.swift /Users/mike/Cocoa/BitBucket/bassoon-fingerings-3.0/Bassoon Fingerings/MusicStaffView/MusicStaffView.swift /Users/mike/Cocoa/BitBucket/bassoon-fingerings-3.0/Bassoon Fingerings/NotePickerViewController.swift /Users/mike/Cocoa/BitBucket/bassoon-fingerings-3.0/Bassoon Fingerings/FingeringViewController.swift -primary-file /Users/mike/Cocoa/BitBucket/bassoon-fingerings-3.0/Bassoon Fingerings/MusicStaffView/MusicStaffViewElementLayer.swift /Users/mike/Cocoa/BitBucket/bassoon-fingerin
10
0
4.2k
Jun ’15
Reply to How to print Swift 2.0 iBook
I like paper too - we probably both have gray hair (if any hair at all 🙂). However, the frameworks change so often not sure it would be productive to print out 5000 pages of paper every few months.What I often do is print out the Guides - those change at a slower pace. Also, I bought a Kindle for the sole purpose of reading Swift docs while sitting in a sand chair at the beach, in bright light. Or read them on long flights.I haven't heard back yet from SiteSucker. Since I can access the index.html file using 'curl', I can only suppose the Apple server knows about SiteSucker and disables it from accessing the files. Really - if we could just get the book directly none of this would come into play.
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15
Reply to Abort trap: 6
The offending code is in this file and is commented out in this version (lines 25-34):class MusicStaffViewStaffLayer: CAShapeLayer { var maxLedgerLines : Int = 0 var currentHorizontalPosition : CGFloat { get { if let sublayers = self.sublayers! as? [CALayer] { if let lastElement = sublayers.last as CALayer! { return lastElement.frame.origin.x + lastElement.frame.size.width } } return 0 } } required init?(coder aDecoder: NSCoder) { super.init(coder: aDecoder) strokeColor = UIColor.blackColor().CGColor } override init() { super.init() strokeColor = UIColor.blackColor().CGColor } /* override var path : CGPath? { get { return staffPath() } set { } } */ func staffPath() -> CGPathRef { let staffLines = UIBezierPath() let spaceWidth : CGFloat = self.bounds.size.height / (6.0 + 2.0 * CGFloat(maxLedgerLines)) self.lineWidth = spaceWidth / 10.0 for i in 1...(5 + maxLedgerLines) { if (i <= maxLedgerLines || i > 5 + maxLedgerLines) { continue } let height = self.bounds.origin.y + spaceWidth * CGFloat(i)
Jun ’15