Post not yet marked as solved
We are using and iOS version 17.4.1 and 17.5(beta) , and when are we facing the issue for local network permission in our app.
Success scenario steps:
Don't allow the local network permission in our App
Allow it manually in app setting for local network permission(works only in first install of the App)
We are able to call the API successfully
Error scenario steps:
Allow the local network permission popup to app when asked for permission
Call the API successfully
Uninstall the app and install the same app again and don't allow the local network permission
API call fail's
Manually change the local network permission to allow in app settings
Still the API call fails even if we allow the local network permission
Conclusion : We are getting API error when re-install the app and if it is not allowed local network permission as well as when we allow the local network permission. Looks like caching issue.
Note: Even if uninstall and install multiple time and allow the local network permission from 2nd time onward API keeps on failing , but these scenario work perfectly fine on iOS 16 version and below. Even the existing app stopped working after updating iOS version to 17 and above.
Also we found alternatively when we uninstall the app and restart the device and install it back again it works fine for the first time as a fresh install.
Additionally : We are not calling local network permission explicitly, when the API call is happening this is native popup coming on iOS
Post not yet marked as solved
Hi,
We recently released a version of our app where we use 'NWParameters.PrivacyContext'.
On iOS 17.4 and iOS 17.4.1 the app crashes with a following crash:
Distributor ID: com.apple.AppStore
Hardware Model: iPhone12,1
Process: <app>
Path: <path to app>
Identifier: <bundle id>
Version: <version>
AppStoreTools: 15E204
AppVariant: 1:iPhone12,1:15
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: <our bundle id> [4899]
Date/Time: 2024-04-29 01:50:13.4113 +0300
Launch Time: 2024-04-29 01:13:47.6252 +0300
OS Version: iPhone OS 17.4.1 (21E236)
Release Type: User
Baseband Version: 5.00.00
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000054
Exception Codes: 0x0000000000000001, 0x0000000000000054
VM Region Info: 0x54 is not in any region. Bytes before following region: 4334124972
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
--->
__TEXT 102558000-1063e4000 [ 62.5M] r-x/r-x SM=COW
<path to app>
Termination Reason: SIGNAL 11 Segmentation fault: 11
Terminating Process: exc handler [24308]
Triggered by Thread: 18
Kernel Triage:
VM - (arg = 0x3) mach_vm_allocate_kernel failed within call to vm_map_enter
VM - (arg = 0x3) mach_vm_allocate_kernel failed within call to vm_map_enter
VM - (arg = 0x3) mach_vm_allocate_kernel failed within call to vm_map_enter
VM - (arg = 0x3) mach_vm_allocate_kernel failed within call to vm_map_enter
VM - (arg = 0x3) mach_vm_allocate_kernel failed within call to vm_map_enter
Thread 18 name:
Thread 18 Crashed:
0 libdispatch.dylib 0x00000001a573b7d8 dispatch_async + 192 (queue.c:940)
1 Network 0x000000019ddbdb38 nw_queue_context_async + 76 (queue.m:87)
2 Network 0x000000019e512748 invocation function for block in nw_socket_init_socket_event_source(nw_socket*, unsigned int) + 1488 (protocol_socket.cpp:4351)
3 libdispatch.dylib 0x00000001a5736dd4 _dispatch_client_callout + 20 (object.m:576)
4 libdispatch.dylib 0x00000001a573a2d8 _dispatch_continuation_pop + 600 (queue.c:321)
5 libdispatch.dylib 0x00000001a574e1c8 _dispatch_source_latch_and_call + 420 (source.c:596)
6 libdispatch.dylib 0x00000001a574cd8c _dispatch_source_invoke + 832 (source.c:961)
7 libdispatch.dylib 0x00000001a5740284 _dispatch_workloop_invoke + 1756 (queue.c:4570)
8 libdispatch.dylib 0x00000001a5749cb4 _dispatch_root_queue_drain_deferred_wlh + 288 (queue.c:6998)
9 libdispatch.dylib 0x00000001a5749528 _dispatch_workloop_worker_thread + 404 (queue.c:6592)
10 libsystem_pthread.dylib 0x00000001f981cf20 _pthread_wqthread + 288 (pthread.c:2665)
11 libsystem_pthread.dylib 0x00000001f981cfc0 start_wqthread + 8 (:-1)
Thread 18 crashed with ARM Thread State (64-bit):
x0: 0x0000000301a922e0 x1: 0x000000032471a720 x2: 0x0000000000000000 x3: 0x00000003015e2300
x4: 0x0000000000000003 x5: 0x00000000000022e0 x6: 0x0000000172462ef0 x7: 0x000000000000008b
x8: 0x00000000000008ff x9: 0x0000000000000000 x10: 0x0000000000010000 x11: 0x0000000000000020
x12: 0x00000003016f3854 x13: 0x00000000001ff800 x14: 0x00000000000007fb x15: 0x0000000089800118
x16: 0x00000001a573511c x17: 0x000000019e514740 x18: 0x0000000000000000 x19: 0x0000000000000000
x20: 0x0000000308eae8c0 x21: 0x000000032471a730 x22: 0x000000032471b0e0 x23: 0x000000000000e023
x24: 0x0000000172463085 x25: 0x000000002b1d034c x26: 0x0000000000000800 x27: 0x0000000000000000
x28: 0x0000000000000000 fp: 0x000000032471a6b0 lr: 0xad5ba301a573b750
sp: 0x000000032471a690 pc: 0x00000001a573b7d8 cpsr: 0x80000000
esr: 0x92000006 (Data Abort) byte read Translation fault
What could be the reason for it?
Post not yet marked as solved
As title says...I'm fairly adept at navigating iphone features so it doesnt seem to be something simple. Clock has completely disappeared from my phone. Removed from control center, not found in apps, even searching doesn't pull up the app. I'm at a loss. My alarms and timers run through the native clock app, so I'd really like it fixed.
Post not yet marked as solved
Are there certain scenarios where the in-app safari browser may block a redirect from occurring? I have two separate mobile applications named A and B. Application A redirects to application B after clicking on a specific menu option. Currently, i've been experiencing an issue on application B where the login page begins to hang after attempting to login with SSO. There are no network calls being reported referencing a redirect request, however, i can remove a specific query parameter and a redirection will occur, but ends up returning a 400 as that parameter is needed. I'd like to note, using direct login works for application B using the same query parameters and does not hang. SSO also works normally on Application A
Post not yet marked as solved
When am not setting any resolution its taking default resolution as higher resolution and the stream is getting lag and only getting 4Fps why?
Post not yet marked as solved
To all whom see this post,
I am a loyalty user of iPhone over decade; however I start to use an Android phone 2 years ago due to the Android allow the Dual App at the same time. I just wonder this is a function which was created years on Android, and why there is no news about IOS will allow it for such a long time?
Due to my needs of work and personal life, I have to use same app with 2 different accounts at the same time to catch up everything. Under this situation, an Android phone fills my needs perfectly. But I still wanna say the IOS is a great、amazing system and I really wanna get back to iPhone. But I have no idea why Apple doesn't make this change especially it seems not a big change.
Will this function finally come into IOS soon or later?
Post not yet marked as solved
Hello everyone,
I'm currently working on implementing a vaccine tracker and reminder feature for an application. As part of this feature, I plan to collect basic information about babies from their parents, such as name, gender, and date of birth, in order to create personalized profile cards and assist in tracking vaccinations.
My question is regarding the gender field: Is it acceptable to ask for only 'male' or 'female' as options, or should I include other gender options as well to ensure inclusivity? Additionally, considering that I'll be asking for gender and date of birth, I'm concerned about potential rejection of the app build by Apple. Can anyone provide insight into whether this could be an issue?
Thank you for your help and guidance!
Post not yet marked as solved
Hi folks,
When trying to distribute my app with transporter, I'm stuck for 2 days on asset validation with the following error :
"Asset validation failed (90704) Missing app icon. Include a large app icon as a 1024 by 1024 pixel PNG in the asset catalog of apps built for iOS, iPadOS, or watchOS. Without this icon, apps can't be submitted for review...."
I tried many workarounds, switching to svg, then png, then svg again, create an asset group with many file sizes, go back to simpliest implementation...
I'm using Visual studio 17.9.2 (rollback from more recent version due to incompatibility with XCode), a macbook air with sonoma 14.4 and Xcode 15.3.
Has anyone had the same problem and found a solution ?
Post not yet marked as solved
Hello Geeks,
After testing our iOS app using MobSF, the report highlighted that the binary has Runpath Search Path (@rpath) set. In certain cases an attacker can abuse this feature to run arbitrary executable for code execution and privilege escalation.
The Runpath Search Path directs the dynamic linker to search for dynamic libraries (dylibs) in a specified order of paths, similar to how Unix searches for binaries in $PATH. However, this setup introduces a vulnerability wherein an attacker could place a malicious dylib in one of the initial paths, thereby hijacking the legitimate library sought by the linker.
Despite attempting to manually strip the binary following instructions from https://inesmartins.github.io/mobsf-ipa-binary-analysis-step-by-step/index.html, the same warnings persist in the report. We urgently seek assistance in resolving this issue and eagerly await your response.
Post not yet marked as solved
How do GPS lat and lon get written to .MOV files on iPhones? Is it programmed to export the coordinates as soon as you press record, when you press end, some other time?
If you are recording and walking or driving what location will the GPS affix to the file? I thank you all so much for your time and help.
It appears that this is the file that the location gets written to? com.apple.quicktime.location.ISO6709
Post not yet marked as solved
I have view hierarchy like this:
NavigationView {
VStack {
ScrollView {
// some content
}
.background(NavigationLink(destination:
MyView(),
isActive: $isActive) {
EmptyView()
})
// snipped
}
}
When the user follows the navigation link to MyView, by default NavigationBar and MyView is laid out like in a VStack. How can I make them like in a ZStack(alignment: .topLeading) ? i.e. I like MyView extends beneath the NavigationBar.
Here is the MyView:
GeometryReader { geo in
HStack {
// some content
}
.onAppear {
hideNavigationbar = false
}
.onTapGesture(perform: {
hideNavigationbar.toggle()
})
.navigationBarHidden(hideNavigationbar)
.navigationBarTitleDisplayMode(.inline)
// snipped
}
The problem is, when hideNavigationbar toggles, MyView would shift up and down because its height would change. I want NavigationBar sits on top of MyView like in a ZStack so that when NavigationBar hides, MyView will not shift (only uncover its top portion).
What is the proper way to achieve that?
XCode: 15.3 using SwiftUI
iOS: 15
Post not yet marked as solved
Hello:
I'm having a startup APP crash problem. I have not yet analyzed the reason for this crash, because there is no use in re-uninstalling and restarting the phone.Can you help me to analyze this problem, thank you. Here are the crash logs:
"vmRegionInfo" : "0xb5a01000 is not in any region. Bytes before following region: 1255124992\n REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL\n UNUSED SPACE AT START\n---> \n __TEXT 1006fc000-101d44000 [ 22.3M] r-x/r-x SM=COW /var/containers/Bundle/Application/9E639B44-4FE1-40BF-A6A1-2CA0F88F1340/aaaaaa.app/aaaaaa",
"exception" : {"codes":"0x0000000000000001, 0x00000000b5a01000","rawCodes":[1,3047165952],"type":"EXC_BAD_ACCESS","signal":"SIGKILL","subtype":"KERN_INVALID_ADDRESS at 0x00000000b5a01000"},
Post not yet marked as solved
I am trying to build a Swift app for iOS which depends on an open-source API called BrainFlow. BrainFlow is written in C++. Due to App Store restrictions, the API must be built by hand into a framework so that it can be signed with my developer certificate. So that's what I did. I now have a signed framework that I can embed in my app and that Apple is OK with.
BrainFlow depends on a third-party library called SimpleBLE, an open-source API for connecting to BLE devices. So I built that too into its own signed framework. So far so good.
The problem comes when my app tries to connect to a BLE device via BrainFlow. BrainFlow is designed to explicitly load its third-party libs like plug-ins, and it is hardcoded to assume that all dylibs are located in the same directory. However, when I build the BrainFlow framework so that it embeds the SimpleBLE dylib in the same directory as the BrainFlow dylib, App Store Connect rejects my app due to a policy violation.
One solution might be to query dyld and have it return the resolved location of the SimpleBLE dylib. For example if the dylib is referenced as @rpath/libsimpleble-c.dylib, then the query would return its full path after resolving @rpath. I do not know how to do that or even if it's possible.
Another solution might be to embed the SimpleBLE dylib into the BrainFlow framework in such a way that it does not violate App Store policy. Again I am unable to figure out how to do that or even if it is possible.
The relevant BrainFlow code can be found in the init_dll_loader() function of the following code:
https://github.com/brainflow-dev/brainflow/blob/master/src/board_controller/ble_lib_board.cpp
That function calls DLLLoader(), which can be found here:
https://github.com/brainflow-dev/brainflow/blob/master/src/utils/inc/runtime_dll_loader.h
Thanks in advance for your thoughtful suggestions and comments.
Post not yet marked as solved
Hi
I Download my app from test flight, when i click submit button to a backend call. App expects to get back with the response from the backend, to take to next pages.
But the app seems to be stuck waiting for the backend response. No error messages seen. i am sure the backend call is blocked from the test flight version. Same code works well from emulator and the physical device from local and from Google PlayStore. Only the test flight is the problem.
I am sure i messed up some settings , My Info.plist has as in below, can anyone please help.
NSAppTransportSecurity
NSPinnedNetworkSecurityItems
MyBundleName
NSIncludesSubdomains
NSAllowsArbitraryLoads
NSPinnedCAIdentities
SPKI-SHA256-BASE64
THEKEY
Post not yet marked as solved
I'm encountering a problem on some Iphone models with photo gallery authorization.
On some devices, the authorization only displays "add photos" and "None". However, for many devices, most of them have "Full access", "Limited access" and "None" authorizations, which means that you can't access the gallery.
Example of device affected by the bug: Iphone 11 IOS 17.3.
I tested on an emulator with the same version, but it works with all 3 authorizations.
In Info.plist , I have the following information:
NSCameraUsageDescription
The application wants to have access to your camera to help you add photos to your worksites.
NSPhotoLibraryAddUsageDescription
The application wants access to your photos to help you add photos to your building sites.
NSPhotoLibraryUsageDescription
The application wants access to your photos to help you add photos to your worksites.
Post not yet marked as solved
Following the update to iOS 17.4.1, our team has observed a recurring issue across all iPhone browsers within our Virtual Try On web application. Specifically, when users switch between products, there's a disruption in camera permissions (changes to not allowed), resulting in a black screen appearing in the canvas where the live camera stream typically displays.
We have noted that several users have reported experiencing the same issue. We kindly request your assistance in addressing this matter. Could you please provide guidance on any potential fixes or workarounds for this issue? Additionally, we would appreciate an estimated timeline for when a resolution might be expected.
Thank you for your attention to this matter. We look forward to your prompt response and assistance in resolving this issue.
Post not yet marked as solved
I've found a strange leak, that looks like a bug.
When we open two sheets, or fullscreenCovers and the last one has a TextField, then after closing both, @StateObject property is not released.
If you delete TextField, there will be no memory leak.
It works well and memory is releasing on iOS 16 built with Xcode 15 (simulators)
Memory is leaking and not releasing on iOS 17 built with Xcode 15 (simulators, device 17.4.1)
import SwiftUI
struct ContentView: View {
@State var isFirstOpen: Bool = false
var body: some View {
Button("Open first") {
isFirstOpen = true
}
.sheet(isPresented: $isFirstOpen) {
FirstView()
}
}
}
struct FirstView: View {
@StateObject var viewModel = LeakedViewModel()
var body: some View {
ZStack {
Button("Open second") {
viewModel.isSecondOpen = true
}
}
.sheet(isPresented: $viewModel.isSecondOpen) {
SecondView(onClose: {
viewModel.isSecondOpen = false
})
}
}
}
final class LeakedViewModel: ObservableObject {
@Published var isSecondOpen: Bool = false
init() { print("LeakedViewModel init") }
deinit { print("LeakedViewModel deinit") }
}
struct SecondView: View {
@State private var text: String = ""
private let onClose: () -> Void
init(onClose: @escaping () -> Void) {
self.onClose = onClose
}
var body: some View {
Button("Close second"){
onClose()
}
TextField("text: $text", text: $text)
// Comment TextField and the leak will disappear, viewModel deinit called
}
}
@main
struct LeaksApp: App {
var body: some Scene {
WindowGroup {
ContentView()
}
}
}
May be related to https://forums.developer.apple.com/forums/thread/738840
Post not yet marked as solved
Hi all apple devs! I am a young developer who is completely new to everything programming. I am currently trying to develop an app where I want to use visionkit, but I can't for the life of me figure out how to implement its features. I've been stuck on this for several days, so I am now resorting to asking all of you experts for help! Your assistance would be immensely appreciated!
I started to develop the app trying to exclusively use swiftUI to futureproof my app. Upon figuring out what visionkit is, to my understanding it is more compatible with UIkit? So I rewrote the part of my code that will use visionkit into a UIkit based view, to simplify the integration of visionkits features. It might just have overcomplicated my code? Can visionkit be easily implemented using only swiftUI? I noticed in the demo on the video tutorial the code is in a viewcontroller not a contentview, is this what makes my image unresponsive?
My image is not interactable like her demo in the video, where in my code do I go wrong? Help a noob out!
The desired user flow is like this: User selects an image through the "Open camera" or "Open Camera Roll" buttons. Upon selection the UIkit based view opens and the selected image is displayed on it. (This is where I want to implement visionkit features) User interacts with the image by touching on it, if touching on a subject, the subject should be lifted out of the rest of the image and be assigned to the editedImage, which in turn displays only the subject without the background on the contentview. (For now the image is assigned to editedimage by longpressing without any subjectlifting since I cant get visionkit to work as I want)
Anyways, here's a code snippet of my peculiar effort to implement subject lifting and visionkit into my app:
Post not yet marked as solved
Hello Everyone,
I am having a problem here with my app. I developed a timer that play a sound .mp3 and the sound play every time that the timer start and finish.
Everything works very well in the simulator but not on the devices after I distribute the build and install using the testflight.
I saw the build content and the file is inside. However, I have no idea what I am doing wrong (if it is some option that i forgot to check or some problem in my code). Please, somebody can help me?
Here is the func with the path. (I inserted the sound on the root) in the same place that we can find the Contentview.
func playFinishSound() {
guard let url = Bundle.main.url(forResource: "finish_sound", withExtension: "mp3") else { return }
do {
player = try AVAudioPlayer(contentsOf: url)
player?.play()
} catch {
print("Error playing finish sound")
}
}
}
Thank you very much for your help. I appreciate.
Antonio
Post not yet marked as solved
I have a CI setup where one job builds xctestrun files for tests and another job that uses tem to actually run tests. The setup worked fine with XCode 14 on macOS 13. Now after switching to macOS 14 and XCode 15.0.1 xcodebuild doesn't want to run tests anymore:
xcodebuild -destination 'generic/platform=iOS' -derivedDataPath DerivedData_Temporary/ -resultBundlePath './fastlane/test_output/APPName-iOS.xcresult' -testPlan 'APPName-Unit-All' -xctestrun 'DerivedData_Temporary/Build/Products/APPName_APPName-Unit-All_iphonesimulator17.0-arm64-x86_64.xctestrun' test-without-building
throws an error
xcodebuild: error: Failed to build workspace iOS with scheme APPName-iOS.: Scheme “APPName-iOS” does not have an associated test plan named “APPName-iOS-Unit-All”
Almost the same command for macOS works perfectly fine.
What does this error even mean? And how to fix it?