Post

Replies

Boosts

Views

Created

Using TestFlight Before Submission?
Hello. I'm a little bit confused about how TestFlight works. If I have an iOS app under development that has not been in the store and that has not been submitted for a review yet, can I use TestFlight to have it tested by my development team? I know that there are two types of tests, internal tests and external tests. It seems that you can use TestFlight for internal tests even if the app has not been submitted for a review. Thanks.
1
0
692
Jan ’21
Developing an App for a Third Party
When you develop an iOS app for some company, say Company A, under whose name should you sign up a developer account so that you can code-sign the app and send it to the iTunes Connect server? Is it you or Company A? I am thinking that I can sign up a new account to submit an app as long as I give the copyright to Company A. My concern is that there was a new rule like Spamming that took effect several years ago. I guess some guys were using the same package and only changed superficial aspects to submit a ton of similar apps. Thanks. p.s. It's not an in-house app under an enterprise account that I'm talking about. The app will be submitted to the App Store.
1
0
535
Jan ’21
Project deployment target and Cocoapod target version
Let me suppose that I have an Xcode project that uses the following Cocoapods. 	pod 'Firebase/Auth' 	pod 'GoogleSignIn' And let me also suppose that the minimum deployment target for my Xcode project is 11.0. In this case, do I set the Cocoapod platform to 11.0 like platform :ios, '11.0' target 'MyProject' do 	use_frameworks! 	pod 'Firebase/Auth' 	pod 'GoogleSignIn' end Or do I use the latest versions of Cocoapods like platform :ios, '14.2' target 'MyProject' do 	use_frameworks! 	pod 'Firebase/Auth' 	pod 'GoogleSignIn' end ? Thanks.
1
0
3.5k
Jan ’21
Too Complex To Check Code in Reasonable Time?
Again, I have a vertical stack of horizontal stacks of buttons as follows. import SwiftUI struct ContentView: View { 		@State private var eventPresented = Bool() 		@State private var selectedEventIndex = Int() 		@State private var monthSelection = Int() 		 		var body: some View { 				VStack { 						VStack(spacing: 0.0) { 								HStack(spacing: 0.0) { 										ForEach((0...6), id: \.self) { 												index in 												Button(buttonTitles[index] ?? "") { 														eventPresented = true 														selectedEventIndex = index + 1 - self.weekIndex 												} 												.foregroundColor(titleColors[index]) 												.overlay(Text(eventNumbers[index] ?? "").font(.footnote).foregroundColor(.blue).offset(x: -16, y: -16)) 												.buttonStyle(BorderlessButtonStyle()) 												.frame(width: 48, height: 48, alignment: .center) 												.background(RoundedRectangle(cornerRadius: 2) 																				.fill(fillColors[index]) 																				.shadow(color: shadowColors[index], radius: 2, x: 0, y: 0) 												) 												.sheet(isPresented: $eventPresented) { 														EventView(eventVisible: self.$eventPresented, dayFromParent: self.$selectedEventIndex, monthFromParent: self.$monthSelection) 												} 										} 								} 								... 								... 								HStack(alignment: .top, spacing: 0.0) { 										ForEach((35...36), id: \.self) { 												index in 												Button(buttonTitles[index] ?? "") { 														eventPresented = true 														selectedEventIndex = index + 1 - self.weekIndex 												} 												.foregroundColor(titleColors[index]) 												.overlay(Text(eventNumbers[index] ?? "").font(.footnote).foregroundColor(.blue).offset(x: -16, y: -16)) 												.buttonStyle(BorderlessButtonStyle()) 												.frame(width: 48, height: 48, alignment: .center) 												.background(RoundedRectangle(cornerRadius: 2) 																				.fill(fillColors[index]) 																				.shadow(color: shadowColors[index], radius: 2, x: 0, y: 0) 												) 												.sheet(isPresented: $eventPresented) { 														EventView(eventVisible: self.$eventPresented, dayFromParent: self.$selectedEventIndex, monthFromParent: self.$monthSelection) 												} 										} 								} 								.frame(width: 336.0, height: 48.0, alignment: .leading) 						} 				} 		} } And I want to send a few variables to EventView when the user clicks on a button. struct EventView: View { 		@Binding var eventVisible: Bool 		@Binding var dayFromParent: Int 		@Binding var monthFromParent: Int 		var body: some View { 				VStack { 						Text("Window sheet.") 						Button("OK") { 								self.eventVisible = false 								print("month from parent: \(monthFromParent)") 								print("day from parent: \(dayFromParent)") 						} 				} 				.frame(width: 240, height: 180) 		} } If I just want to send two variables to it, EventView(eventVisible: self.$eventPresented, dayFromParent: self.$selectedEventIndex) the compiler didn't complain. For the third variable, it says SwiftUI the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions I know what it means. Some say it could resolve the issue by making the data types of variables clearer. Others say you could use a function to return a variable for a somewhat complex algebra equation. But what can I do in my case? Does anybody have any suggestions? Thank you
6
0
807
Dec ’20