WWDC22 SALE: Save 50% on all my Swift books and bundles! >>

Instafilter (project 13) works in Simulator but not iPhone

Forums > 100 Days of SwiftUI

Anyone else have an issue using the Save functionality when running the Instafilter app on a device rather than the simulator?

When I tap "Save" using the phone (XR), the "Oops: error" text gets printed out on the cosole, and the dialog box doesn't appear on the phone's screen.

When I try to Save using the simulator, the "Success" text is printed out and the box appears on screen.

I've compared my code with Paul's from the Git repository, and, aside from some variables and functions being ordered a little different, the codes are the same.

   

I tested mine out and it's still working. It applies the filter and saves the image correctly. I'm using an iPhone SE on iOS 15.3.1

   

Damn, I gotta buy myself a new iPhone. My iPhone 7 is not even supported in Xcode haha.

   

Could this be a permissions issue? Don't you have to give applications permission to store data on your device?

   

Save 50% in my Black Friday sale.

SAVE 50% To celebrate WWDC22, all our books and bundles are half price, so you can take your Swift knowledge further without spending big! Get the Swift Power Pack to build your iOS career faster, get the Swift Platform Pack to builds apps for macOS, watchOS, and beyond, or get the Swift Plus Pack to learn advanced design patterns, testing skills, and more.

Save 50% on all our books and bundles!

Sponsor Hacking with Swift and reach the world's largest Swift community!

Reply to this topic…

You need to create an account or log in to reply.

All interactions here are governed by our code of conduct.

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.