Posts

Post not yet marked as solved
3 Replies
848 Views
Hi, where can I read the release notes of the latest iOS 14.2 where it includes all the emojis that were shipped and so on? Of course I'm asking here because I'd like it from the source, not google :) Thanks
Posted
by afern247.
Last updated
.
Post marked as solved
5 Replies
5.8k Views
Hi, this is kind of a myth right now since the documentation is like a ghost. How can I integrate Apple Pay on my SwiftUI app? Is there any guide/doc or useful Simple code to review? Thanks
Posted
by afern247.
Last updated
.
Post not yet marked as solved
1 Replies
603 Views
Hi, I have an app that I haven't update in a while and I want to update it to iOS 14, there is a mismatch in my github repo and the archive version number that I have published, maybe I forgot to commit the last update I did. How can I use the local archive version I have on my computer? On Github I see version 3.01 and my local has 3.1.0 Thanks
Posted
by afern247.
Last updated
.
Post not yet marked as solved
0 Replies
1.9k Views
I'm getting the following error: An error occurred installing macOS. You can try again to complete the installation. I'm running Catalina 10.15.6 (19G73) I tried multiple times but it always fails, here is the log: 2020-08-10 19:02:43-04 MacBook-Pro InstallAssistant_springboard[3829]: Springboarding to: /Applications/Install macOS Big Sur Beta.app/Contents/MacOS/InstallAssistant 2020-08-10 19:02:43-04 MacBook-Pro InstallAssistant_springboard[3829]: argv[0]: InstallAssistant 2020-08-10 19:02:43-04 MacBook-Pro InstallAssistant[3829]: InstallAssistant build: 532 2020-08-10 19:02:43-04 MacBook-Pro InstallAssistant[3829]: No compatibility bundle on this version of macOS. Will assume compatible. 2020-08-10 19:02:43-04 MacBook-Pro InstallAssistant[3829]: Hardware: MacBookPro16,1 @ 2.30 GHz (x 16), 65536 MB RAM 2020-08-10 19:02:43-04 MacBook-Pro InstallAssistant[3829]: Running OS Build: Mac OS X 10.15.6 (19G73) 2020-08-10 19:02:43-04 MacBook-Pro InstallAssistant[3829]: Env: USER=arturo 2020-08-10 19:02:43-04 MacBook-Pro InstallAssistant[3829]: Env: LOGNAME=arturo 2020-08-10 19:02:43-04 MacBook-Pro InstallAssistant[3829]: Env: PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/libexec 2020-08-10 19:02:43-04 MacBook-Pro InstallAssistant[3829]: Env: SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.AkyjOmNzo6/Listeners 2020-08-10 19:02:43-04 MacBook-Pro InstallAssistant[3829]: Env: HOME=/Users/arturo 2020-08-10 19:02:43-04 MacBook-Pro InstallAssistant[3829]: Env: SHELL=/bin/zsh 2020-08-10 19:02:43-04 MacBook-Pro InstallAssistant[3829]: Env: __CF_USER_TEXT_ENCODING=0x1F5:0x0:0x0 2020-08-10 19:02:43-04 MacBook-Pro InstallAssistant[3829]: Env: TMPDIR=/private/tmp/PKInstallSandbox.nSLxCy/tmp 2020-08-10 19:02:43-04 MacBook-Pro InstallAssistant[3829]: Env: XPC_SERVICE_NAME=com.apple.InstallAssistant.Seed.macOS1016Seed1.295184 2020-08-10 19:02:43-04 MacBook-Pro InstallAssistant[3829]: Env: XPC_FLAGS=0x0 2020-08-10 19:02:43-04 MacBook-Pro osinstallersetupd[3830]: Seeding: ExtendedAttribute was not set on /Applications/Install macOS Big Sur Beta.app 2020-08-10 19:02:43-04 MacBook-Pro osinstallersetupd[3830]: seedingInfoDict -> 2020-08-10 19:02:43-04 MacBook-Pro osinstallersetupd[3830]: result : Fail 2020-08-10 19:02:43-04 MacBook-Pro osinstallersetupd[3830]: seedProgramSource : Default 2020-08-10 19:02:43-04 MacBook-Pro osinstallersetupd[3830]: seedProgram : PublicSeed 2020-08-10 19:02:43-04 MacBook-Pro osinstallersetupd[3830]: catalogURLString : https://swscan.apple.com/content/catalogs/others/index-10.16beta-10.16-10.15-10.14-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog 2020-08-10 19:02:43-04 MacBook-Pro osinstallersetupd[3830]: fileName : /Applications/Install macOS Big Sur Beta.app 2020-08-10 19:02:43-04 MacBook-Pro osinstallersetupd[3830]: error : No xattr was set 2020-08-10 19:02:43-04 MacBook-Pro osinstallersetupd[3830]: OSISSoftwareUpdateController: No xattr was set on file /Applications/Install macOS Big Sur Beta.app. Falling to default Seed. 2020-08-10 19:02:43-04 MacBook-Pro osinstallersetupd[3830]: OSISSoftwareUpdateController: Using catalog (source: Default): https://swscan.apple.com/content/catalogs/others/index-10.16beta-10.16-10.15-10.14-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog 2020-08-10 19:02:43-04 MacBook-Pro osinstallersetupd[3830]: mountDiskImageWithPath: /Applications/Install macOS Big Sur Beta.app/Contents/SharedSupport/SharedSupport.dmg 2020-08-10 19:02:43-04 MacBook-Pro osinstallersetupd[3830]: Extracting brain /Volumes/Shared Support/UpdateBrain.zip -> /var/folders/jt/hkl_3skn4y3c1hwsfn3b1wmw0000gn/T/UpdateBrain 2020-08-10 19:02:43-04 MacBook-Pro osinstallersetupd[3830]: Extracting /Volumes/Shared Support/UpdateBrain.zip -> /var/folders/jt/hkl_3skn4y3c1hwsfn3b1wmw0000gn/T/UpdateBrain 2020-08-10 19:02:43-04 MacBook-Pro osinstallersetupd[3830]: Finished extracting: succeeded 2020-08-10 19:02:43-04 MacBook-Pro osinstallersetupd[3830]: Skipping starting the brain because we're not on a new enough macOS. 2020-08-10 19:02:43-04 MacBook-Pro osinstallersetupd[3830]: Adding MobileSoftwareUpdate product: OSISMobileSoftwareUpdateProduct <brain: /Volumes/Shared Support/UpdateBrain.zip, bundle: /Volumes/Shared Support/com_apple_MobileAsset_MacSoftwareUpdate/878ad7930fa12653a9b85de02c61ab40fcd367c6.zip, SFR: /Volumes/Shared Support/SFR/com_apple_MobileAsset_SFRSoftwareUpdate/8c282b9482994406fd8cbd420ff08e26f8515203.zip> 2020-08-10 19:02:43-04 MacBook-Pro osinstallersetupd[3830]: Will extract Info.plist from: /Volumes/Shared Support/com_apple_MobileAsset_MacSoftwareUpdate/878ad7930fa12653a9b85de02c61ab40fcd367c6.zip toPath: /var/folders/jt/hkl_3skn4y3c1hwsfn3b1wmw0000gn/T/64BA77B3-F27C-481F-A958-3C5E7A4C7A48 What's the fix there?
Posted
by afern247.
Last updated
.
Post marked as solved
2 Replies
1.9k Views
When I submitted they said this: _Guideline 2.1 - Performance - App Completeness In addition, we are unable to complete the review of your app because one or more of your in-app purchase products have not been submitted for review. Next Steps To resolve this issue, please be sure to take action and submit your in-app purchases and upload a new binary in App Store Connect. Learn more about how to offer in-app purchases - https://help.apple.com/app-store-connect/#/devb57be10e7 in App Store Connect Developer Help. Once you've submitted your in-app purchases and uploaded a new binary, we can proceed with your review. However that's the guide I followed, it doesn't say anything. Right now I'm connecting to my product and validating the purchase fine, but how do I change that waiting for upload?
Posted
by afern247.
Last updated
.
Post not yet marked as solved
2 Replies
1.6k Views
I'm very confused regarding how to handle the sample project. I have my app project right? So I open it. I download the sample - https://developer.apple.com/documentation/storekit/in-app_purchase/offering_completing_and_restoring_in-app_purchases project and open it on another window. How do I integrate the iOS payment target functionality to my existing app? What do I have to copy to my app and how? The most useful information the documentation says is this: 5. For iOS and tvOS devices, build and run the InAppPurchases and InAppPurchasestvOS targets, respectively, which the sample uses to build InAppPurchases. which doesn't help at all. Ok so on the new Window I opened with the sample project I put my bundle id and product id and it works... now how do I copy that target or whatever it's linking the purchase to my app?
Posted
by afern247.
Last updated
.
Post marked as solved
1 Replies
897 Views
I'm trying to follow the guide to setup apple pay in-app purchases and it says here - https://developer.apple.com/documentation/storekit/in-app_purchase/setting_up_the_transaction_observer_for_the_payment_queue: Consider creating your observer as a shared instance of the class for global reference in any other class. If I have: class StoreObserver: NSObject, SKPaymentTransactionObserver { 								.... 		//Initialize the store observer. 		override init() { 				super.init() 				//Other initialization here. 		} 		//Observe transaction updates. 		func paymentQueue(_ queue: SKPaymentQueue,updatedTransactions transactions: [SKPaymentTransaction]) { 				//Handle transaction states here. 		} 								.... } and I call it with: let iapObserver = StoreObserver() how do I create such shared instance?
Posted
by afern247.
Last updated
.
Post marked as solved
2 Replies
502 Views
On the docs it says this: let fare = PKPaymentSummaryItem(label: "Minimum Fare", amount: NSDecimalNumber(string: "9.99"), type: .final) 				let tax = PKPaymentSummaryItem(label: "Tax", amount: NSDecimalNumber(string: "1.00"), type: .final) 				let total = PKPaymentSummaryItem(label: "Total", amount: NSDecimalNumber(string: "10.99"), type: .pending) I'd like to understand it, this are my guesses, please correct me if I'm wrong and clarify the ones I don't know: Minimum Fare = what I'm charging for the app Tax = ?? I how do I know this? Total = ?? based on tax so ??
Posted
by afern247.
Last updated
.
Post marked as solved
1 Replies
514 Views
I have an app and it's going to charge a 1 time purchase for premium. How can I restore that purchase later on if user deletes app? I was looking the code here - https://stackoverflow.com/questions/28734890/restore-inapp-purchase-using-swift-ios but it's too abstract and incomplete, can someone lend me a hand?
Posted
by afern247.
Last updated
.
Post marked as solved
2 Replies
790 Views
Hi, currently the app works the following way (regarding this): I open the app, it checks if it's the same day. I put it in background, it stores the last day If when it comes back from background, it checks that it's a new day, then it resets the array of elements to it's initial state. Right now the above is working, the problem is when I close the app and I start it again, it's like if it looses track of everything. When I open it after being closed, it doesn't reset anything, what's going on? 		// --------- This sets the auto time Meal reset 		@State var lastDay: Date = Date() 		@State var isToday = false 		// 		let getThemeConstants = GetThemeConstants() 		var body: some View { 				VStack { 						if viewRouter.currentPage == "onboardingView" { 								OnboardingView() 						} else if viewRouter.currentPage == "homeView" { 								TabView { 										HomeView(mealsController: self.mealsController) 												.tabItem { 														Image(systemName: "house") 														Text("Menu") 										} 										SettingsView(mealsController: self.mealsController) 												.tabItem { 														Image(systemName: "slider.horizontal.3") 														Text("Settings") 										} 								} 								.accentColor(Color(getThemeConstants.accentThemeColor)) 								.onReceive(NotificationCenter.default.publisher(for: UIApplication.willResignActiveNotification)) { _ in 										// store the date whenever you go into background 										print("Stored last day") 										UserDefaults.standard.set(Date(), forKey: "lastDay") 								} 						} 				} 						// Try to retrieve the date when you come back from background 						.onReceive(NotificationCenter.default.publisher(for: UIApplication.willEnterForegroundNotification)) { _ in 								// Check if the same is the same 								if let temDate = UserDefaults.standard.object(forKey: "lastDay") { 										self.lastDay = temDate as! Date 										// If same day 										if Calendar.current.isDate(Date(), inSameDayAs: self.lastDay) { 												self.isToday = true 												print("Same day = true") 										} else { 												// If new day, set day as needs to be reset 												print("Day needs to be reset set to true") 												self.settingsUserDefaults.dayNeedsToBeReset = true 										} 								} 								// If new day and day needs to be reset 								if(self.settingsUserDefaults.dayNeedsToBeReset == true) { 										if let thisHour = Calendar.current.dateComponents([.hour], from: Date()).hour { 												print("Inside new day") 												// If it is 6 am or later do something 												if (thisHour >= self.settingsUserDefaults.dayStartTime) { 														print("----> It is 8am or later --> Reset Meal Times") 														self.resetDayViewModel.resetDay(mealsController: self.mealsController) 														self.settingsUserDefaults.dayNeedsToBeReset = false 												} else { 														print("Still is not time to change") 												} 										} 								} 				} 		} }
Posted
by afern247.
Last updated
.
Post not yet marked as solved
0 Replies
314 Views
If I add the background color Color.red.edgesIgnoringSafeArea(.all) when I scroll up on the texts, the navigationBarTitle doesn't display inline as it should, how can i fix it?struct ContentView : View { var body: some View { NavigationView { ZStack { Color.red.edgesIgnoringSafeArea(.all) ScrollView { Group { Text("Example") .padding(.bottom, 30) Text("Example") } } .navigationBarTitle("title") } } } }I also tried this:NavigationView { GeometryReader { gp in Color.purple.edgesIgnoringSafeArea(.all) ScrollView { ZStack(alignment: .top) { VStack { VStack { Text("wef") } Spacer() } }.frame(minHeight: gp.size.height) } .navigationBarTitle("Gallery") } }but the text goes all the way to the left top, when it should be centered
Posted
by afern247.
Last updated
.
Post marked as solved
1 Replies
902 Views
Hi, I currently don't have a company created and I'd like to have one with its name and everything. How is the process to do so? Do I have to pay somewhere to have it registered? Do I need to have it registered? For example under my app name on the appstore the company that shown is my name, so I'd like to modify that. How is the legal process for this and also how can I ensure that no one later takes that name and uses it, so I can claim it mine.Thank you
Posted
by afern247.
Last updated
.
Post marked as solved
1 Replies
294 Views
I rewrote the whole app and users that had the app with some CoreData data already there may experience problems with the new update. How can I tell the app store that when the user updates the app, the previous app needs to be deleted completly and install the new one update?
Posted
by afern247.
Last updated
.
Post not yet marked as solved
0 Replies
923 Views
I'm combining a navigation view and a sheet the following way:struct ContentView: View { @State var showingDetail = false var body: some View { NavigationView { VStack { NavigationLink(destination: DetailView()) { Text("Go to view 2") } VStack { Button(action: { self.showingDetail.toggle() }) { Text("Show Detail") }.sheet(isPresented: $showingDetail) { SheetView() } } } .navigationBarTitle("Back") .navigationBarHidden(true) } } } struct SheetView: View { var body: some View { Text("Detail") } }The sheet works fine, but the new DetailView when you open it, the Back button seems to be there and then after 1 sec it disappears. How can I fix this?
Posted
by afern247.
Last updated
.
Post marked as solved
5 Replies
762 Views
I'm very frustrated with Core Data, the information varies so much and they are trying to adapt it to SwiftUI that everything is a mess on the documentation side. I created an app and the UI doesn't know when core data has a change also when I switch screens... the question is, how can I make sure that my app is aware of core data changes. Is there a simple CRUD app that I can see with the latest practices such as observable object and MVVM ? I bought a Udemy course and has data from the beta, on youtube there is nothing useful, everyone has something different with old data.So how can I see a simple example to disect where they implement:- observable object- MVVM- passsing data back and forth between different screens such as 2 TabViewsThank you
Posted
by afern247.
Last updated
.