maybe is not the same.. but I got here searching a way..
from Test Flight I DO see a crash:
if I download I got
testflight_feedback.zip
unzipping, I can see in in JSON:
{
"id" : "AILekJY1tZIOmVavWYVqgVE",
"timestamp" : "2024-07-22T11:54:02.389Z[UTC]",
"appAppleId" : 533461505,
"cfBundleShortVersion" : "2.962",
"cfBundleVersion" : "176",
"deviceModel" : "iPhone11,8",
"osVersion" : "16.3.1",
"locale" : "it-YE",
"carrier" : null,
"timezone" : "Europe/Rome",
"architecture" : "arm64e",
"connectionStatus" : "MOBILE_DATA",
"pairedAppleWatch" : "",
"appUptimeMillis" : null,
"availableDiskBytes" : 1258336256,
"totalDiskBytes" : 63933894656,
"networkType" : null,
"batteryPercentage" : 39,
"screenWidth" : 414,
"screenHeight" : 896,
"emailAddress" : ".......",
"comment" : "Altro crash"
}
here is NOT a reread xcrah log..
any clue?
is better to use a TSI??
Post
Replies
Boosts
Views
Activity
git the same on June 2024 on iOS18 beta
same for me in XCTest.
If I add Host Application,
AND
Allow testing Host Application APIs
tests build correctly.
any other combinations, fails.
I succeded in terminal issuing:
xcodebuild -downloadAllPlatforms
DONT know HOW, but it reset something :(
seee HERE to see better..
https://stackoverflow.com/questions/67616459/catalyst-app-crashes-when-using-wheelpickerstyle/77166542#77166542
// MARK: Refreshable - Modifier for Refreshable based on OS:
**(note: inline code does NOT work... is not my fault...)
**
// accesory:
public func isCatalyst()->Bool {
//tolerate warnings!
#if targetEnvironment(macCatalyst)
return true
#endif
return false
}
public typealias RefreshAction = ()->()
private struct MyRefreshableModifier: ViewModifier {
internal init(action: @escaping RefreshAction) {
self.action = action
}
private let action: RefreshAction
public func body(content: Content) -> some View {
#if os(iOS)
// Catalyst IS under iOS:
if isCatalyst(){
content
}else{
content
.refreshable {
action()
}
}
#elseif os(macOS)
content
// nada. We throw away
#endif
}
}
public extension View {
func portableRefreshableModifier(action: @escaping RefreshAction) -> some View {
modifier(MyRefreshableModifier(action: action) )
}
}
// usage:
/*
List {
Text("Hello World")
Text("Hello World")
Text("Hello World")
}.refreshable {
print("refresh....")
}
will be:
List {
Text("Hello World")
Text("Hello World")
Text("Hello World")
}.portableRefreshableModifier {
print("refresh....")
}
*/
with very low stress, You can easy install directly with cable or wifi... or using Ad Hoc distributions (but require to register devices, create and "ad Hoc" profile, build IPA with those settings, and send them...
same for me, until Xcode beta 4 I could, but binaries crash on iOS 17 beta of yesterday. (opened another thread)
fixed downloading xccode Version 15.0 beta 5 (15A5209g).
God bless us!
BUT... no tTest flight!!
Unsupported Xcode or SDK Version. Your app was built with a version of Xcode or SDK that is not yet supported for upload to App Store Connect. For more information about supported versions of Xcode and SDK for Testflight or App Store submissions, view the App Store Connect What's New page (https://developer.apple.com/app-store-connect/whats-new/). (ID: a1433239-95a6-42db-88d9-c3bc0365679f)
same for me, and more stranger in Xcode 15 beta warning disappears... :(
a real, working example with a nice implementation is here:
https://swiftuirecipes.com/blog/swiftui-scrollview-scroll-offset
saame for me both on Monterrey (Xcode 13) AND Ventura (Xcode 14 beta)
bootcamp does rely on Intel x64 binary instructions, and some sort of HW virtualisation, no way to run directly.
hello, processors AND chips are different so no way to do it. bootcamp relied on using same Intel chips, so some sort of HW virtualixzation was in place.
it seems working in Xcode 12.5 but we do have a WORSE case.
Suppose You need to write something like that:
struct InfoSheetView: View {
if #available(iOS 15, *) {
} else {
}
var body: some View {
.....
}
}
even if an EMPTY if # I got:
Expected declaration
on if #..
I would like to write
..
if #available(iOS 15, *) {
@Environment(\.dismiss) var dismiss
} else {
@Environment(\.presentationMode) var presentationMode
}
see original example at:
https://www.hackingwithswift.com/quick-start/swiftui/how-to-present-a-new-view-using-sheets
and try to conditionally use
@Environment(\.dismiss) var dismiss
OR
@Environment(.presentationMode) var presentationMode