Search results for

“file uri scheme”

81,725 results found

Post

Replies

Boosts

Views

Activity

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 0x000000010813cfb2 (anonymous namespace)::Traversal::doIt(swift::Decl*) + 242 10
8
0
1.5k
Jun ’15
Reply to Abort trap: 6
Maybe the reason the compiler is crashing because your code is trying to override a stored property in obj-c with a computed property in Swift?I would recommend filing a bug with your example code above, since the compiler/sourcekit shouldn't be crashing like that, and should provide an error if there is a problem with the code.Is there a reason why you can't leave out the override of path: and just set it in init like you do with strokeColor?required init?(coder aDecoder: NSCoder) { super.init(coder: aDecoder) strokeColor = UIColor.blackColor().CGColor path = staffPath() } override init() { super.init() strokeColor = UIColor.blackColor().CGColor path = staffPath() }
Jun ’15
Reply to Can't fetch JSON due to NSInvalidArgumentException
If the debugger is not working right, a) file a bug, and b) just use old school logging: NSLog(Error: %@, error);Even if there is no error, you may get a failure NSHTTPURLResponse. You should cast the response to NSHTTPURLResponse and check that the statusCode is success (typically 200, or maybe 200 through 299 depending how standards compliant you plan to be). If you get a 404 or something, error will still be nil.
Jun ’15
Best practice for setting CFBundleVersion automatically
With the newest releases of iOS and iTunesConnect, Apple is more and more restrictive about what´s happening in your CFBundleVersion of your Extensions.I tried to fiddle around with Run Script Build Phases, such as this:#!/bin/sh INFOPLIST_EXT=${TARGET_BUILD_DIR}/${INFOPLIST_PATH} echo Extension writing to $INFOPLIST_EXT PLISTCMD=Set :CFBundleVersion $(git rev-list --all|wc -l) echo -n $INFOPLIST_EXT | xargs -0 /usr/libexec/PlistBuddy -c $PLISTCMDHowever, this seems to work for some types of Extensions (WatchKit), but for some others it doesn´t (Today Widget). In my cases, I seem to access the $TARGET_BUILD_DIR before there´s content in it. Using $BUILT_PRODUCTS_DIR delivers the same error.Extension writing to /Users/marc/Library/Developer/Xcode/DerivedData/MyApp-focpnqzzpnqsfyaqwwocwpujmhmh/Build/Intermediates/ArchiveIntermediates/MyApp/IntermediateBuildFilesPath/UninstalledProducts/TopNewsWidget.appex/Info.plist Set: Entry, :CFBundleVersion, Does Not Exist File Doesn't Exist, Will Create: /Users/m
6
0
7.2k
Jun ’15
Reply to Java SE 6
For some reason, even after downloading and installing the latest Java, I am not finding any .plist file in the directory below:/Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/ContentsAnyone else unable to follow any of the steps outlined on this page? I really need Java to work 😟
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Using a cell in another file in Swift
I would like to keep the content of a UITableView cell in a separate file as I do in Objective-c even in my TodayExtension Swift table in order to wire it to the storyboard. Yet when I try to do it, it complaints it cannot find the class of the cell; this is the function I use:override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell { println(indexPath) let cell = tableView.dequeueReusableCellWithIdentifier( TableViewConstants.cellIdentifier, forIndexPath: indexPath) as! TodayCell return celltodayCell is the class in another file it reports it cannot find:import UIKit class TodayCell: UITableViewCell { @IBOutlet var bus: UILabel @IBOutlet var stopAddress: UILabel! @IBOutlet var destination: UILabel! }Importing the file, even if not needed according the the Swift documentation, moved the error in the import statement.
5
0
1.3k
Jun ’15
Reply to Restore WatchOS to 1.0
This won't work - the reset/restore from backup process *does not* restore the 1.x WatchOS - it only resets app and sync data.Unless you can find a way to get a copy of the actual full WatchOS file, there is *no way back* from WatchOS 2.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Custom property list type
I am trying to create custom plist definition file. What I did:Create predefined PlistEdit ProMoved saved file to ~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/And nothing happened. I am seeing that I can switch to some example types(see on image) in Plist Editor. But how add custom type definition?http://i.stack.imgur.com/eyB9R.pngAs you can see at image exists some example structures.The question is how to create or register custom type to Xcode or Property list editor?
1
0
529
Jun ’15
Finder Sidebar Items Reset
After a reboot (not sure if the same thing happens after logging out?) the items in the left sidebar of finder windows reset to be the default arrangement (All My Files, iCloud Drive, AirDrop, Applications, Desktop etc etc). Little bug which is super annoying. Anyone else suffering the same issue?
6
0
1.6k
Jun ’15
share file from Google Drive or Dropbox to App
Is it possible to share a file like an mp3 from an app (like Google Drive, Dropbox or Mail) to my app?I've been reading about extensions but it looks like I can't access my app's file storage from the extension. Is this the case?If that is, should I look at the API's for Google Drive and Dropbox?
Topic: UI Frameworks SubTopic: UIKit Tags:
2
0
658
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 0x000000010813cfb2 (anonymous namespace)::Traversal::doIt(swift::Decl*) + 242 10
Replies
8
Boosts
0
Views
1.5k
Activity
Jun ’15
SceneSource & Collada 1.5
Does anyone know if in 10.11 SceneSource can read Collada Digital Asset Exchange files version 1.5? In OSX 10.10 only version 1.4.1 was possible?
Replies
0
Boosts
0
Views
134
Activity
Jun ’15
Reply to Abort trap: 6
Maybe the reason the compiler is crashing because your code is trying to override a stored property in obj-c with a computed property in Swift?I would recommend filing a bug with your example code above, since the compiler/sourcekit shouldn't be crashing like that, and should provide an error if there is a problem with the code.Is there a reason why you can't leave out the override of path: and just set it in init like you do with strokeColor?required init?(coder aDecoder: NSCoder) { super.init(coder: aDecoder) strokeColor = UIColor.blackColor().CGColor path = staffPath() } override init() { super.init() strokeColor = UIColor.blackColor().CGColor path = staffPath() }
Replies
Boosts
Views
Activity
Jun ’15
Reply to Can't fetch JSON due to NSInvalidArgumentException
If the debugger is not working right, a) file a bug, and b) just use old school logging: NSLog(Error: %@, error);Even if there is no error, you may get a failure NSHTTPURLResponse. You should cast the response to NSHTTPURLResponse and check that the statusCode is success (typically 200, or maybe 200 through 299 depending how standards compliant you plan to be). If you get a 404 or something, error will still be nil.
Replies
Boosts
Views
Activity
Jun ’15
Can WKWebView load local resources now?
I see that WKWebView has been fixed to allow loading file:// URLs. Does anybody know if it can now also load other local resources (e.g. custom fonts)? That used to work with UIWebView.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
3
Boosts
0
Views
4.3k
Activity
Jun ’15
Best practice for setting CFBundleVersion automatically
With the newest releases of iOS and iTunesConnect, Apple is more and more restrictive about what´s happening in your CFBundleVersion of your Extensions.I tried to fiddle around with Run Script Build Phases, such as this:#!/bin/sh INFOPLIST_EXT=${TARGET_BUILD_DIR}/${INFOPLIST_PATH} echo Extension writing to $INFOPLIST_EXT PLISTCMD=Set :CFBundleVersion $(git rev-list --all|wc -l) echo -n $INFOPLIST_EXT | xargs -0 /usr/libexec/PlistBuddy -c $PLISTCMDHowever, this seems to work for some types of Extensions (WatchKit), but for some others it doesn´t (Today Widget). In my cases, I seem to access the $TARGET_BUILD_DIR before there´s content in it. Using $BUILT_PRODUCTS_DIR delivers the same error.Extension writing to /Users/marc/Library/Developer/Xcode/DerivedData/MyApp-focpnqzzpnqsfyaqwwocwpujmhmh/Build/Intermediates/ArchiveIntermediates/MyApp/IntermediateBuildFilesPath/UninstalledProducts/TopNewsWidget.appex/Info.plist Set: Entry, :CFBundleVersion, Does Not Exist File Doesn't Exist, Will Create: /Users/m
Replies
6
Boosts
0
Views
7.2k
Activity
Jun ’15
Reply to Java SE 6
For some reason, even after downloading and installing the latest Java, I am not finding any .plist file in the directory below:/Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/ContentsAnyone else unable to follow any of the steps outlined on this page? I really need Java to work 😟
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’15
Using a cell in another file in Swift
I would like to keep the content of a UITableView cell in a separate file as I do in Objective-c even in my TodayExtension Swift table in order to wire it to the storyboard. Yet when I try to do it, it complaints it cannot find the class of the cell; this is the function I use:override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell { println(indexPath) let cell = tableView.dequeueReusableCellWithIdentifier( TableViewConstants.cellIdentifier, forIndexPath: indexPath) as! TodayCell return celltodayCell is the class in another file it reports it cannot find:import UIKit class TodayCell: UITableViewCell { @IBOutlet var bus: UILabel @IBOutlet var stopAddress: UILabel! @IBOutlet var destination: UILabel! }Importing the file, even if not needed according the the Swift documentation, moved the error in the import statement.
Replies
5
Boosts
0
Views
1.3k
Activity
Jun ’15
Reply to Restore WatchOS to 1.0
This won't work - the reset/restore from backup process *does not* restore the 1.x WatchOS - it only resets app and sync data.Unless you can find a way to get a copy of the actual full WatchOS file, there is *no way back* from WatchOS 2.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’15
Custom property list type
I am trying to create custom plist definition file. What I did:Create predefined PlistEdit ProMoved saved file to ~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/And nothing happened. I am seeing that I can switch to some example types(see on image) in Plist Editor. But how add custom type definition?http://i.stack.imgur.com/eyB9R.pngAs you can see at image exists some example structures.The question is how to create or register custom type to Xcode or Property list editor?
Replies
1
Boosts
0
Views
529
Activity
Jun ’15
Reply to Java SE 6
How did you edit the file? Mine is locked and I can't figure out how to unlock it.Thanks
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’15
Reply to WatchOS 2 beta broken?
I have the same issue with the watch. Filed a bug report about it.In the meantime, use the simulator until Apple fixes the problem.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’15
Finder Sidebar Items Reset
After a reboot (not sure if the same thing happens after logging out?) the items in the left sidebar of finder windows reset to be the default arrangement (All My Files, iCloud Drive, AirDrop, Applications, Desktop etc etc). Little bug which is super annoying. Anyone else suffering the same issue?
Replies
6
Boosts
0
Views
1.6k
Activity
Jun ’15
share file from Google Drive or Dropbox to App
Is it possible to share a file like an mp3 from an app (like Google Drive, Dropbox or Mail) to my app?I've been reading about extensions but it looks like I can't access my app's file storage from the extension. Is this the case?If that is, should I look at the API's for Google Drive and Dropbox?
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
2
Boosts
0
Views
658
Activity
Jun ’15
Reply to Companion app has problems with Watch OS 2.0
File bug reports.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jun ’15