Build, test, and submit your app using Xcode, Apple's integrated development environment.

Posts under Xcode tag

200 Posts
Sort by:

Post

Replies

Boosts

Views

Activity

Resolving a "Simulator runtime is not available" error
Some Macs recently received a macOS system update which disabled the simulator runtimes used by Xcode 15, including the simulators for iOS, tvOS, watchOS, and visionOS. If your Mac received this update, you will receive the following error message and will be unable to use the simulator: The com.apple.CoreSimulator.SimRuntime.iOS-17-2 simulator runtime is not available. Domain: com.apple.CoreSimulator.SimError Code: 401 Failure Reason: runtime profile not found using "System" match policy Recovery Suggestion: Download the com.apple.CoreSimulator.SimRuntime.iOS-17-2 simulator runtime from the Xcode To resume using the simulator, please reboot your Mac. After rebooting, check Xcode Preferences → Platforms to ensure that the simulator runtime you would like to use is still installed. If it is missing, use the Get button to download it again. The Xcode 15.3 Release Notes are also updated with this information.
0
0
1.2k
May ’24
NSKeyedUnarchiver.unarchivedObject(ofClass: , from: ) doesn't work with custom UIButton
My app creates dynamic copies of UI controls that are based on a custom UIButton subclass using this legacy approach: let archivedButton = try NSKeyedArchiver.archivedData(withRootObject: self, requiringSecureCoding: false) guard let buttonDuplicate = try NSKeyedUnarchiver.unarchiveTopLevelObjectWithData(archivedButton) as? UIWagerButton else {return nil } I am currently trying to work passed the deprecation of NSKeyedUnarchiver.unarchiveTopLevelObjectWithData(data: Data) Per the guidance, I should be replacing that line with the following and ensuring that the custom class implements NSSecureCoding guard let buttonDuplicate = try NSKeyedUnarchiver.unarchivedObject(ofClass: UIWagerButton.self, from: archivedButton) else {return nil} However, while the code does compile and run, decoding the data reference throws the following error: value for key 'UIButtonStatefulContent' was of unexpected class 'NSMutableDictionary' I can only assume that if I get passed this specific property, there will be other properties that are also problematic. Question: Is this a bug? Or, am I now responsible for navigating the underlying property matrix of this UIControl to specifically, manually, handle the encoding and decoding of each of it's properties?
0
0
11
47m
Navigation issue in Xcode 16 beta 7
I've got an iOS app and a main view with a list with a search field. When I click on a list item navigation link takes me to another view through navigation destination modifier. I can go back to the main list view. Now, consider this scenario: Click in the search field (you do not have to type there anything) Click any item on the list This all works fine when I build the app with Xcode 15.4 and I can get back to the main list. But if I build the app using Xcode 16 beta 7 the destination view is shown twice (the destination view is shown and then moved again to the same view) and I cannot back to the main view at all. I can go back one view only. Could it be a bug in Xcode? Was do you think about that?
2
0
99
14h
App Icon all black on ios17, works on iOS18, building app in Xcode16 beta
In my app I added an AppIcon in the Assets.xcassets folder. I added a any/dark/tinted version of the app icon, in 1024x1024 resolution as a HEIC file, specifying a "single size" iOS option. When I build and run the app in xcode16 beta on iOS18 the icon works as expected, but when I run the same app on iOS17 the icon just shows up as a black rectangle. How do I get the app icon to work correctly on both iOS18 and iOS17?
0
0
78
1d
Material Reference from Reality Composer Pro
I have a model entity (from Reality Composer Pro) I want to change the material of the model entity inside swift. The material is also imported in reality composer pro. I am copying the USDZ file of the material in the same directory as the script. This is the code I am using to reference the Material. do { // Load the file data if let materialURL = Bundle.main.url(forResource: "BlackABSPlastic", withExtension: "usdz") { let materialData = try Data(contentsOf: materialURL) // Check the first few bytes of the data to see if it matches expected types let headerBytes = materialData.prefix(4) let headerString = String(decoding: headerBytes, as: UTF8.self) // Print out the header information for debugging print("File header: \(headerString)") // Attempt to load the ShaderGraphMaterial let ScratchedMetallicPaint = try await ShaderGraphMaterial( named: "BlackABSPlastic", from: materialData ) print(ScratchedMetallicPaint) } else { print("BlackABSPlastic.usdz file not found.") } } catch { // Catch the error and print it print("BlackABSPlastic load failed: \(error)") // Attempt to infer file type based on the error or file content if let error = error as? DecodingError { switch error { case .typeMismatch(let type, _): print("Type mismatch: Expected \(type)") case .dataCorrupted(let context): print("Data corrupted: \(context.debugDescription)") default: print("Decoding error: \(error)") } } else { print("Unexpected error: \(error)") } } I am receiving these errors: File header: PK TBB Global TLS count is not == 1, instead it is: 2 Unable to create stage from in-memory buffer. BlackABSPlastic load failed: internalImportError Unexpected error: internalImportError am I doing anything wrong? I am able to access the materials of the model entity easily but this seems to something different. How can this be resolved? Thanks.
1
0
95
1d
Issues with Displaying Language Tags Compliant with RFC 5646
Hello, I'm currently facing some issues with localization for the Safari extension on iOS: Issues with Language Tags: Folder names like pt-BR (Brazilian Portuguese) and pt-PT (European Portuguese) placed in the Resources/_locales/ directory are not displaying the respective languages correctly; instead, the default English is shown. Similarly, using folder names like zh-CN (Simplified Chinese) and zh-TW (Traditional Chinese) also results in default English display instead of the intended Chinese language. Conversely, when changing the folder names to pt (Portuguese general) and zh (Chinese general), the languages display correctly. Could you please provide any recommendations or tips regarding language tag settings and how to ensure they are properly recognized according to RFC 5646? Thanks for your help! Best,
1
0
118
1d
error: the replacement path doesn't exist:
I'm using SwiftData with an @Model and am also using an @ModelActor. I've fixed all concurrency issues and have migrated to Swift 6. I am getting a console error that I do not understand how to clear. I get this error in Swift 6 and Swift 5. I do not experience any issue with the app. It seems to be working well. But I want to try to get all issues taken care of. I am using the latest Xcode beta. error: the replacement path doesn't exist: "/var/folders/1q/6jw9d6mn0gx1znh1n19z2v9r0000gp/T/swift-generated-sources/@_swiftmacro_17MyAppName14MyModelC4type18_PersistedPr> opertyfMa.swift"
1
0
92
1d
Xcode Predictive Code Completion can't download
I got the Xcode 16 beta a few months and I downloaded the predictive code completion model, and it worked, but then recently I deleted Xcode and the Developer directories and then installed a newer beta, but I couldn't download the model because of this issue: "The operation couldn’t be completed. (ModelCatalog.CatalogErrors.AssetErrors error 1.)" AND "Failed - Failed to find asset: com.apple.gm.safety_deny.input.code_intelligence.base - no asset" Then expanding this window gave me this error: The operation couldn’t be completed. (ModelCatalog.CatalogErrors.AssetErrors error 1.) Domain: ModelCatalog.CatalogErrors.AssetErrors Code: 1 User Info: { DVTErrorCreationDateKey = "2024-08-22 13:00:57 +0000"; } -- Failed to find asset: com.apple.gm.safety_deny.input.code_intelligence.base - no asset Domain: ModelCatalog.CatalogErrors.AssetErrors Code: 1 -- System Information macOS Version 15.1 (Build 24B5024e) Xcode 16.1 (23047) (Build 16B5001e) Timestamp: 2024-08-22T21:00:57+08:00 I have uninstalled then reinstalled Xcode 16.1 beta and Xcode 16.0 beta, but none of them worked. Thank you!
3
0
160
2d
App giving the following error when run on any machine besides the one built on
I have inherited some Application code which was built in Xcode (swift and object c). This is a Native Mac application I am running the Xcode build on 14.4 and the Xcode version is 15.4 The app also uses AppAuth and is built using Cocoapods. I am newbie at Xcode and Swift both but was able to make some necessary code changes and build the already existing app. The runs just fine on the machine I am building on via both run or going into the release directory and clicking on the application. The application is not yet signed. but when I provide the the contents of "Products" folder (basically where the debug or release versions are stored) They get the following error The application cannot be opened for an unexpected reason, error=Error Domain=NSOSStatusErrorDomain Code=-10810 "kLSUnknownErr: Unexpected internal error" UserInfo={_LSFunction=_LSLaunchWithRunningboard, _LSLine=3090, NSUnderlyingError=0x600001e2d7d0 {Error Domain=RBSRequestErrorDomain Code=5 "Launch failed." UserInfo={NSLocalizedFailureReason=Launch failed., NSUnderlyingError=0x600001e2d830 {Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted" UserInfo={NSLocalizedDescription=Launchd job spawn failed}}}}}
0
0
86
3d
Unable to connect Xcode 16 Beta to iPhone
I am unable to connect iPhone to Xcode. Getting error - The developer disk image could not be staged on the host.; Couldn’t communicate with a helper application. Xcode - 16 Beta Mac OS - Sonoma 14.6.1 iOS - 17.6.1 VPN - No Details are as follows: The developer disk image could not be staged on the host. Domain: com.apple.dt.CoreDeviceError Code: 12045 Failure Reason: Couldn’t communicate with a helper application. User Info: { DVTErrorCreationDateKey = "2024-08-21 11:04:09 +0000"; DeviceIdentifier = "01162B62-9C06-48A4-B2F7-D17ABD2D35B0"; NSURL = "file:///Library/Developer/DeveloperDiskImages/iOS_DDI.dmg"; "com.apple.dt.DVTCoreDevice.operationName" = enablePersonalizedDDI; } -- Couldn’t communicate with a helper application. Domain: NSCocoaErrorDomain Code: 4099 Recovery Suggestion: Try your operation again. If that fails, quit and relaunch the application and try again. User Info: { NSDebugDescription = "The connection to service created from an endpoint was invalidated: failed at lookup with error 9 - Bad file descriptor."; } -- System Information macOS Version 14.6.1 (Build 23G93) Xcode 16.0 (23047) (Build 16A5221g) Timestamp: 2024-08-21T16:34:09+05:30 **Tried so far - ** Xcode Quit and Reopen Restart iPhone Restart Mac Reinstalling Xcode Reset Network Settings on iPhone Developer mode ON/OFF Unpair and Pair Again Clear Trusted Computers Tried with different iPhone Cables(Not needed one but tried) Factory Reset of iPhone Please guide how to resolve this.
0
0
103
3d
hello, where can I find the supporting file "info.plist" in xcode?
I always get the user location not found error even though I have activated my location import SwiftUI import MapKit import CoreLocation class LocationManager: NSObject, ObservableObject, CLLocationManagerDelegate { private let locationManager = CLLocationManager() @Published var location: CLLocation? = nil @Published var authorizationStatus: CLAuthorizationStatus? = nil override init() { super.init() locationManager.delegate = self locationManager.desiredAccuracy = kCLLocationAccuracyBest locationManager.requestWhenInUseAuthorization() locationManager.startUpdatingLocation() } func locationManager(_ manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) { guard let newLocation = locations.last else { return } location = newLocation print("Updated location: \(newLocation.coordinate.latitude), \(newLocation.coordinate.longitude)") } func locationManager(_ manager: CLLocationManager, didChangeAuthorization status: CLAuthorizationStatus) { authorizationStatus = status if status == .authorizedWhenInUse || status == .authorizedAlways { locationManager.startUpdatingLocation() } } } private func sectionTitle(_ title: String) -> some View { Text(title) .font(.headline) .fontWeight(.bold) .padding(.bottom, 8) } private func openAppleMaps() { let destinationLatitude: CLLocationDegrees = -6.914744 let destinationLongitude: CLLocationDegrees = 107.609810 guard let currentLocation = locationManager.location?.coordinate else { print("Lokasi pengguna tidak ditemukan.") return } let currentLatitude = currentLocation.latitude let currentLongitude = currentLocation.longitude // URL encode parameters let urlString = "http://maps.apple.com/?saddr=\(currentLatitude),\(currentLongitude)&daddr=\(destinationLatitude),\(destinationLongitude)&dirflg=d" guard let appleMapsUrl = URL(string: urlString) else { print("URL tidak valid.") return } // Open Apple Maps UIApplication.shared.open(appleMapsUrl, options: [:]) { success in if !success { print("Gagal membuka Apple Maps.") } } }
1
0
52
3d
iOS app getting crashed in the testflight sometimes on initial load or atleast once a day
The app is developed using react native. The issue is only in the iOS app but not in the Android. The app crashes when it is opened. And after the first crash, it will work if we try to open it again. We do not know much about the cause of the crash as it is not replicated in debug mode. Here is the app crash report we got from the test flight app. Incident Identifier: 5E35C4DD-8CCC-43D3-A2B3-152277C9013E Distributor ID: com.apple.AppStore Hardware Model: iPhone13,1 Process: WATAMUKI_MOBILE [9673] Path: /private/var/containers/Bundle/Application/DF3C370A-0AF0-482A-ABFC-4C926BD37605/WATAMUKI_MOBILE.app/WATAMUKI_MOBILE Identifier: jp.watamuki.ios Version: 9.7 (134) AppStoreTools: 15F31e AppVariant: 1:iPhone13,1:15 Code Type: ARM-64 (Native) Role: Foreground Parent Process: launchd [1] Coalition: jp.watamuki.ios [2520] Date/Time: 2024-08-16 16:24:12.0699 +0900 Launch Time: 2024-08-16 16:23:49.0526 +0900 OS Version: iPhone OS 17.5.1 (21F90) Release Type: User Baseband Version: 4.50.06 Report Version: 104 Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Termination Reason: SIGNAL 6 Abort trap: 6 Terminating Process: WATAMUKI_MOBILE [9673] Triggered by Thread: 21 Thread 21 name: Thread 21 Crashed: 0 libsystem_kernel.dylib 0x00000001ee12b42c __pthread_kill + 8 (:-1) 1 libsystem_pthread.dylib 0x0000000201ecac0c pthread_kill + 268 (pthread.c:1721) 2 libsystem_c.dylib 0x00000001acfceba0 abort + 180 (abort.c:118) 3 libc++abi.dylib 0x0000000201de8ca4 abort_message + 132 (abort_message.cpp:78) 4 libc++abi.dylib 0x0000000201dd8e5c demangling_terminate_handler() + 348 (cxa_default_handlers.cpp:77) 5 libobjc.A.dylib 0x000000019cf41e2c _objc_terminate() + 144 (objc-exception.mm:496) 6 libc++abi.dylib 0x0000000201de8068 std::__terminate(void (*)()) + 16 (cxa_handlers.cpp:59) 7 libc++abi.dylib 0x0000000201de800c std::terminate() + 108 (cxa_handlers.cpp:88) 8 libdispatch.dylib 0x00000001acf15de8 _dispatch_client_callout + 40 (object.m:579) 9 libdispatch.dylib 0x00000001acf1d400 _dispatch_lane_serial_drain + 748 (queue.c:3900) 10 libdispatch.dylib 0x00000001acf1df30 _dispatch_lane_invoke + 380 (queue.c:3991) 11 libdispatch.dylib 0x00000001acf28cb4 _dispatch_root_queue_drain_deferred_wlh + 288 (queue.c:6998) 12 libdispatch.dylib 0x00000001acf28528 _dispatch_workloop_worker_thread + 404 (queue.c:6592) 13 libsystem_pthread.dylib 0x0000000201ec7934 _pthread_wqthread + 288 (pthread.c:2696) 14 libsystem_pthread.dylib 0x0000000201ec40cc start_wqthread + 8 (:-1) Thread 21 crashed with ARM Thread State (64-bit): x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x0000000000000000 x4: 0x0000000201ded2c3 x5: 0x000000016e6c6810 x6: 0x000000000000006e x7: 0x0000000000000000 x8: 0xf72f9e93f4d9ff97 x9: 0xf72f9e929ab58f97 x10: 0x0000000000000200 x11: 0x000000016e6c6340 x12: 0x0000000000000000 x13: 0x00000000001ff800 x14: 0x0000000000000010 x15: 0x0000000000000000 x16: 0x0000000000000148 x17: 0x000000016e6c7000 x18: 0x0000000000000000 x19: 0x0000000000000006 x20: 0x0000000000008a17 x21: 0x000000016e6c70e0 x22: 0x0000000000000114 x23: 0x000000016e6c70e0 x24: 0x0000000300dc6868 x25: 0x0000000303998700 x26: 0x0000000000000000 x27: 0x0000000303998700 x28: 0x0000000000000000 fp: 0x000000016e6c6780 lr: 0x0000000201ecac0c sp: 0x000000016e6c6760 pc: 0x00000001ee12b42c cpsr: 0x40001000 esr: 0x56000080 Address size fault
1
0
61
3d
Error EXC_BAD_ACCESS (code=2, address=0x2f30650004) in swift
I am trying to make https request in swift, with identity created from certificate and key. My code look like this To create the identity. func loadIdentity(certificate: String, privateKey: String)-> SecIdentity? { guard let certData = Data(base64Encoded: certificate, options:NSData.Base64DecodingOptions.ignoreUnknownCharacters) else { print("Unable to decode certificate PEM") return nil } guard let cert = SecCertificateCreateWithData(kCFAllocatorDefault, certData as CFData) else { return nil } let addCertQuery: [String: Any] = [kSecClass as String: kSecClassCertificate, kSecValueRef as String: cert, kSecAttrLabel as String: "certificateLabel"] let tag = "fedvfdvdf-tag".data(using: .utf8)! _ = deleteCertificateAndKey(certLabel: "certificateLabel",keyTag: tag ) let certAddStatus = SecItemAdd(addCertQuery as CFDictionary, nil) guard let pemKeyData = Data(base64Encoded: privateKey, options:NSData.Base64DecodingOptions.ignoreUnknownCharacters) else { return nil } let sizeInBits = pemKeyData.count * 8 let keyDict: [CFString: Any] = [ kSecAttrKeyType: kSecAttrKeyTypeRSA, kSecAttrKeyClass: kSecAttrKeyClassPrivate, kSecAttrKeySizeInBits: NSNumber(value: sizeInBits), kSecReturnPersistentRef: true ] var error: Unmanaged<CFError>? guard let key = SecKeyCreateWithData(pemKeyData as CFData, keyDict as CFDictionary, &error) else { return nil } let addKeyQuery: [String: Any] = [ kSecClass as String: kSecClassKey, kSecAttrIsPermanent as String: true, kSecValueRef as String: key, kSecAttrApplicationTag as String: tag ] let privKeyAddStatus = SecItemAdd(addKeyQuery as CFDictionary, nil) let getIdentityQuery = [ kSecClass : kSecClassIdentity, kSecReturnData : true, kSecReturnAttributes : true, kSecReturnRef : true, kSecMatchLimit : kSecMatchLimitAll ] as CFDictionary var identityItem: CFTypeRef? let status = SecItemCopyMatching(getIdentityQuery , &identityItem) print("identityItem finished with status: \(String(describing: identityItem))") print("status finished with status: \(status)") guard status == errSecSuccess else { print("Unable to create identity") return nil } return (identityItem as! SecIdentity); } o make api request. Code is breaking in this function, around this lines let task = session.dataTask(with: request) { (data, response, error) in and let session = URLSession(configuration: .default, delegate: URLSessionPinningDelegate(identity: identity), delegateQueue: nil) For testing I removed identity and just used default URLSession, and request start giving response (although it was 401 but it was not crashing), so my guess is error is because of URLSession. func makeAzureRequest(scopeId:String, registrationId:String, key:String, certificate:String, provisionHost:String, fileNameWithFolder:String, modelId:String, completion: @escaping (Result<String, Error>) -> Void ) throws { guard let identity = loadIdentity(certificate: certificate, privateKey: key) else { throw NSError(domain: "", code: -1, userInfo: [NSLocalizedDescriptionKey: "Unable to create identity"]) } let session = URLSession(configuration: .default, delegate: URLSessionPinningDelegate(identity: identity), delegateQueue: nil) print("session: \(session)") guard let url = URL(string: "https://global.azure-devices-provisioning.net/\(scopeId)/registrations/\(registrationId)/register?api-version=2021-06-01") else { throw NSError(domain: "", code: -1, userInfo: [NSLocalizedDescriptionKey: "Invalid URL"]) } var request = URLRequest(url: url) request.httpMethod = "PUT" request.setValue("application/json", forHTTPHeaderField: "Content-Type") request.setValue("utf-8", forHTTPHeaderField: "Content-Encoding") let body = ["registrationId": registrationId] request.httpBody = try? JSONSerialization.data(withJSONObject: body, options: []) let task = session.dataTask(with: request) { (data, response, error) in if let error = error { completion(.failure(error)) } else if let data = data, let responseString = String(data: data, encoding: .utf8) { completion(.success(responseString)) }else { completion(.failure(NSError(domain: "", code: -1, userInfo: [NSLocalizedDescriptionKey: "Unknown error occurred"]))) } } task.resume() } to call function where api function is triggered. @objc(AzureProvisionWithCertificate) class AzureProvisionWithCertificate: NSObject { @objc(provisionAndUploadFile:withRegistrationId:withKey:withCertificate:withProvisionHost:withFileNameWithFolder:withModelId:withResolver:withRejecter:) func provisionAndUploadFile(scopeId:String, registrationId:String, key:String, certificate:String, provisionHost:String, fileNameWithFolder:String, modelId:String, resolve:@escaping RCTPromiseResolveBlock, reject:@escaping RCTPromiseRejectBlock) -> Void { print("starting swift code here") do { try makeAzureRequest(scopeId: scopeId, registrationId:registrationId, key: key, certificate: certificate, provisionHost: provisionHost, fileNameWithFolder: fileNameWithFolder, modelId: modelId) { result in switch result { case .success(let responseString): // Handle success, perhaps update the UI or process the response case .failure(let error): // Handle failure, perhaps show an error message to the user } } } catch { print("Failed to initiate request: (error.localizedDescription)") } } } And URLSessionPinningDelegate class look like this to SSL pinning. import Foundation import Security class URLSessionPinningDelegate: NSObject, URLSessionDelegate { var identity: SecIdentity init(identity: SecIdentity) { self.identity = identity } func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) { if challenge.protectionSpace.authenticationMethod == NSURLAuthenticationMethodClientCertificate { let credential = URLCredential(identity: self.identity, certificates: nil, persistence: .forSession) completionHandler(.useCredential, credential) } else { completionHandler(.performDefaultHandling, nil) } } }
1
0
92
3d
Xcode Previews broken after setting different bundle identifier for debug/release modes
I wanted to be able to install both an App Store/Release version and a development version of my app on the same device and have them access different persistent stores, so I changed the bundle identifier of my app for the debug build configuration to "com.kevinolmats.Guru.debug", while the release configuration stayed as "com.kevinolmats.Guru". Since then, Xcode previews have completely stopped working. After a long build time, the canvas displays Cannot show preview: check whether the preview is compiled for the current scheme and OS of the device used for previewing. The only things I have changed are: the bundle identifier for the debug configuration the product and bundle names (debug config is now Guru (debug)) added a new entitlements file for the debug configuration Any ideas as to why my previews have stopped working? Enable previews is set to on, and the usual troubleshooting steps (restarting Xcode, my computer, deleting DerivedData) have not helped. The app runs perfectly fine otherwise--it's just previews that are broken.
1
0
74
3d
Command PhaseScriptExecution failed with a nonzero exit code
Context: I am working on a React Native project using Expo and Xcode. I’m encountering an error during the build process that I’ve been unable to resolve. I’ve tried various troubleshooting steps, but the issue persists. Environment Details: Xcode Version: (Specify your Xcode version here, e.g., Xcode 15) macOS Version: (Specify your macOS version here, e.g., macOS 14 Ventura) React Native Version: 0.74.5 Expo SDK Version: 51.0.27 Node Version: (22.6) Error Command PhaseScriptExecution failed with a nonzero exit code node_modules/react-native/scripts/react_native_pods_utils/script_phases.sh: line 34: /opt/homebrew/Cellar/node/22.5.1/bin/node: No such file or directory i have almost tried everything but still same error again and again to debug this i have used stack overflow,chat GPT,bing,Gemini AI, readit Please help me to resolve this issue My Dependencies "dependencies": { "@10play/tentap-editor": "^0.5.17", "@expo/webpack-config": "^19.0.1", "@react-native-async-storage/async-storage": "1.23.1", "@react-navigation/drawer": "^6.7.2", "@react-navigation/native": "^6.1.18", "@react-navigation/stack": "^6.4.1", "@reduxjs/toolkit": "^2.2.7", "axios": "^1.7.4", "expo": "^51.0.28", "expo-constants": "^16.0.2", "expo-dev-client": "^4.0.23", "expo-device": "^6.0.2", "expo-file-system": "^17.0.1", "expo-image-picker": "^15.0.7", "expo-media-library": "^16.0.4", "expo-modules-core": "^1.12.21", "expo-notifications": "^0.28.15", "expo-sharing": "^12.0.1", "expo-status-bar": "^1.12.1", "expo-storage": "^51.0.8", "expo-updates": "^0.25.22", "formik": "^2.4.6", "native-base": "^3.4.28", "npm": "^10.8.2", "react": "18.2.0", "react-devtools": "^5.3.1", "react-dom": "^18.3.1", "react-native": "0.74.5", "react-native-calendars": "^1.1306.0", "react-native-cn-quill": "^0.7.18", "react-native-gesture-handler": "~2.16.1", "react-native-reanimated": "~3.10.1", "react-native-render-html": "^6.3.4", "react-native-safe-area-context": "4.10.5", "react-native-screens": "3.31.1", "react-native-svg": "^15.5.0", "react-native-toast-message": "^2.2.0", "react-native-web": "^0.19.12", "react-native-webview": "13.8.6", "react-query": "^3.39.3", "react-redux": "^9.1.2", "redux-saga": "^1.3.0", "yup": "^1.4.0" }
1
0
128
4d
App not releasing memory immediately
Hi Team, We have been working on one image processing app developed using react. In this app we are making the XMLHttpRequests to the server and storing the response in the cache which has around 200MB - 250MB of size. We are tracking the memory footprint using the Xcode instrument tool. While downloading and rendering the data in app the Xcode instrument shows the memory footprint around 800MB - 1000MB. We are assuming that garbage collection is not working as expected or some resources are not released after use and because of this we get this high memory footprint for 200MB - 250MB data. If the data is changed then we are removing the existing data from cache and storing the new data. But here, when we delete the data from cache, it does not release the memory immediately and takes some time of 3 seconds or more. In between this, the memory gets allocated to new data too and that increases the overall memory footprint of the app and in some cases the app is crashing. The maximum memory we have seen is average 1.5GB which varies with the device configuration. When we try the same activity on a safari browser where memory gets released immediately. If an app releases the initial acquired memory while loading new data we see very less app crashes. We need help to understand if there is a way to release the memory immediately to avoid the app crash. To reproduce this scenario, we have created a simple app which creates an array with size of 100MB and checks the memory footprint using the Xcode instrument tool. When we create an array of 100MB size, sometimes it shows the memory footprint peak of around 700MB-800MB and when we clear the array by assigning it with an empty array it releases the memory after 2-3 seconds. Created an array and then removed it and after removal of the array, created a new array of the same size immediately and again removed it. Because the memory is not released in time, if you repeat these steps a few times the app memory footprint will increase and that crashes the app.
0
0
61
4d
xcode16beta run unreal engine has VectorIntrinsics Failed.
LogUnrealMathTest: FAILED: VectorCos: Ref vs Vec ]LogUnrealMathTest: Bad(0.000000): (0.707107 0.500000 0.342019 0.173648) (0.000000 0.000000 0.000000 0.000000) FAILED: VectorCos: Ref vs Vec LogUnrealMathTest: Bad(0.000000): (-0.707107 -0.500000 -0.342021 -0.173648) (-0.000000 -0.000000 -0.000000 -0.000000) LogMac: Error: appError called: Fatal error: [File:/Users/enginej3/Desktop/UE4/Engine/Source/Runtime/Core/Private/Tests/Math/UnrealMathTest.cpp] [Line: 1652] VectorIntrinsics Failed. this error when running after Xcode build success.this error case unreal editor crash.
0
0
89
4d
Attempted to install a Beta profile without the proper entitlement.
I'm trying to install from Xcode (15.4) to my physical device but I get the following error: Failed to install embedded profile for : 0xe800801f (Attempted to install a Beta profile without the proper entitlement.) The project was successfully building previously, but after encountering an issue while implementing Infobip (a 3rd party library for push notifications) where we weren't getting notifications sent from the Infobip dashboard, we had to change Provisioning Profile to one with a production setup for the aps-environment (given that the suggestion from the Infobip support team was to ensure that the provisioning profile and environment match). Note that it was development before. After downloading the new Provisioning Profile onto Xcode, the project fails to build now with the error mentioned above. I don't know what to do now, and I'm stuck.
0
0
131
4d
WeScan.ImageScannerControllerError iPhone Simulator
Hi everyone, I've got an issue with the iPhone simulator version 15 iOS 17.0. Every time a test attempts to take a photo, the app directs to the camera software and then this error appears. For my colleagues instead, they've been directed to the gallery. The only difference is that my machine is M1 while theirs is with Intel chip. I'm using MacOS 13.6.3, the same as them. Does anyone have any idea why this could happen? Thank you in advance.
0
0
64
4d