Search results for

file uri scheme

78,592 results found

Post

Replies

Boosts

Views

Activity

Can I install iOS7 on iPhone4s? (current iOS 6.1.3)
Hi.I want to install iOS7 on my iPhone4s iOS6.1.3 installed.I downloaded install file(iPhone4,1_7.0_11A465_Restore.ipsw) and tried install, but failed.# Fail messageThe iPhone iPhone could not be restored. This device isn't eligible for the requested build.I know that can't downgrade from iOS8.My app has app crash issue on iOS7 with beacon (on iOS8 OK)How can I install iOS7 on my iPhone?
2
0
449
Jun ’15
Reply to Pages cannot see SanFrancisco font
If you download the font from the developer site and then install via FontBook it will appear in Pages. The new files appear to be the same in both ~/Library/Fonts and /System/Library/Fonts but they now appear in app font menus.This does not work for the new Chinese Font (possible because the FontName has a '.' at the start).
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Core Data - Create NSManagedObject Subclass
I created a test app called Template9b1. The first step I've taken is to use a Template Master / Detail with Core Data. I modified the Entity (called Event) with 4 properties instead of the default timestamp. I used Create NSManagedObject Subclass, and it created the 2 files as it should.// Event+CoreDataProperties.swiftimport Foundationimport CoreDataextension Event { @NSManaged var theDate: NSDate? @NSManaged var name: String? @NSManaged var favorite: String? @NSManaged var status: NSNumber?}// Event.swiftimport Foundationimport CoreData@objc(Event)class Event: NSManagedObject { // Insert code here to add functionality to your managed object subclass}When I run it (simulator), I get an error2015-06-16 23:34:48.842 Template9b1[50760:1014766] CoreData: warning: Unable to load class named 'Template9b1.Event' for entity 'Event'. Class not found, using default NSManagedObject instead.In the past, to get rid of this type of error, I would put the name of the app Template9b1 in the module for the inspecto
5
0
6.9k
Jun ’15
Reply to Bundle Identifier Change Core Data Lost
This took me a while to figure out but here is how I fixed the issue.1. Change your product name under Build Settings -> Packaging -> Product Name to the desired product name. This will change you Bundle Identifier to the desired name.2. Clean your project by selecting Product -> Clean.3. Select your CoreData model in the project navigator and then select the Data Model Inspector in the Inspector tab. Change the project name under class to the new class name. I got stuck here since I did not know Spaces, dashes, . are all replaced by underscores. You can see that my Product Name is FLO-Cycling and the CoreData class is FLO_Cycling.4. If you have imported the Swift bridging header file anywhere make sure to update it.I hope this can help someone.Take care,Jon
Jun ’15
Reply to GameplayKit - how do you set up GKLinearCongruentialRandomSource
Okay - I think I have identified what the actual issue is. Playgrounds inherently hide the 'debug' area so I did not see the error code that was being generated.Here is the error:Playground execution failed: /var/folders/_9/sqdvh1m923j0ts4t7sldpyvr0000gn/T/./lldb/10162/playground861.swift:22:14: error: 'GKLinearCongruentialRandomSource' is only available on iOS 9.0 or newer let random = GKLinearCongruentialRandomSource(seed: seed) ^ /var/folders/_9/sqdvh1m923j0ts4t7sldpyvr0000gn/T/./lldb/10162/playground861.swift:22:14: note: guard with version check let random = GKLinearCongruentialRandomSource(seed: seed)So the real issue is my Xcode 7 beta playground does not appear to be recognized as IOS 9. Is there a way to set Playground's IOS level? I have verified in the File Inspecter that this playground is IOS and not OS X - but I can't find a way to change the IOS version.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
TIFF subviews
I've inherited an application that must read and process about 4000 multi-page tiff images. I'm not an image expert, and I'd love to utilize UIImage to view these, but it would appear that UIImage is ignoring any additional subviews in the tiff file. It will correctly report and display the first image.I was originally optimistic that I could utilize the images property, but since these are not animated images, this property returns nil. I'm able to verify that my images have multiple pages (subviews) utliizing SwiftView.if let img = UIImage(named: multipageTiff) { if let images = img.images as? [UIImage] { println(images (images.count)) } else { println(images is nil) } image = imgThe above code works great at assigning the original image to an UIImageView (image), however the println returns nil, so I'm stuck. Any suggestions would be greatly appreciated.Thanks!
3
0
796
Jun ’15
cannot parse the debug map
Hi there,I'm trying to convert an existing project to Swift 2 using XCode beta 7 (7A120f). After doing the code conversion that XCode suggest me a few errors appears:error: cannot parse the debug map for /Users/maf/Library/Developer/Xcode/DerivedData/xxxx-cibpkvuddoabqjfxlgkqjjvqhrym/Build/Intermediates/SwiftMigration/xxxx/Products/Debug-iphonesimulator/xxxx.app/xxxx: No such file or directoryerror: linker command failed with exit code 1 (use -v to see invocation)I think the second one is a consequence of the first error.Anyone dealed with this?Thanks in advance.
2
0
12k
Jun ’15
Reply to Why does guard let x = x exhibit different scope behavior?
The guard version of x shadows the previous version. In the function foo, the guard x shadows the parameter. There is no problem here: local variables are allowed to shadow parameters.However... you're not supposed to be able to shadow variables in the same scope. I'm surprised that the top level guard in your code compiles at all.You'll notice that:func foo() { let y: Int? = 3 guard let y = y else { return } print(y) }won't compile. (Definition conflicts with previous value)So... I'm surprised that Swift allows you to shadow globals at the file level. I guess there's another rule for main and playgrounds files that lets the duplicate definition through without and error but ultimately leads to the strange behavior that you're seeing.Swift should probably disallow this construct in the same way that it disallows duplicate definitions in functions.
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15
Custom fonts in launch screen
I am creating the launch screen with the xib file provided.I've set a background image which is working fine and a label which I've set the text as an Attributed String.The problem is when I select my custom font in interface builder and the label is shown right but when I run it in the simulator is showing another font (I guess it's showing helvetica)I know the font is working because is shown at Interface Builder (in the launch screen) and I'm using the same font (programmatically) and it's working fine.I tried with a plain text and it happens exactly the same.Any idea?Thanks
Topic: UI Frameworks SubTopic: UIKit Tags:
4
0
9.1k
Jun ’15
Reply to Providing a trial of IAPs
- the keychain is device specific (not synced across devices), so the trial period would be separate for each device? YES. You could also use the user's iCloud account and write to their key-value file- reinstalling the app won't modify the keychain, so the user cannot gain another trial period by reinstalling the app? CORRECT. But the user could restore their entire device to a time before they first ran your app. The alternative approach using the user's iCloud account can't be restored so it avoids this flaw. However the user may log out of their iCloud account and log into a different iCloud account.- restoring the device would reset the keychain, so by doing this (tedious task), the user could gain another trial period? OH - you realized this! YES, this is a way of getting another trial period at some considerable pain to the user.
Topic: App & System Services SubTopic: StoreKit Tags:
Jun ’15
Copy bundle on Watchkit App
Xcode shows me the following warning:The copy Bundle Resources build phase contains this target´s Info.plist file ' WatchKit App/Info.plist'I know that I must remove the entry for Info.plist on the Copy Bundle Resources in the Build Phases tab... But the Watchkit App does not have the Build Phases tab...How can I solve this problem?
2
0
457
Jun ’15