Simulator

RSS for tag

Rapidly prototype and test builds of your app during the development process using Simulator.

Posts under Simulator tag

200 Posts

Post

Replies

Boosts

Views

Activity

Same UI Testing fail with iOS simulator 14.4 but success with iOS simulator 13.7
Hello, I'm in a big project app with unit testing and ui testing running well. Recently, one member of team, buy a MacBook Pro M1 with Big Sur 11.1 and try to execute the ui testing with the new Xcode 12.4 (available today 27/01/21 from Mac AppStore). When he selects any simulator with iOS 13.7 it's ok, but if he selects iOS 14.4 then fail. It doesn't matter if it's an iPad or an iPhone. The error talks about architectures but the settings haven't any custom config depends iOS version. Showing All Messages MYAPPUITests-Runner.app (72942) encountered an error (Failed to load the test bundle. If you believe this error represents a bug, please attach the result bundle at /Users/user/Library/Developer/Xcode/DerivedData/MYAPP-gefifpwdxlqqbidolncfjzimagfq/Logs/Test/Test-MYAPP-2021.01.27_23-13-22-+0100.xcresult. (Underlying Error: The bundle “MYAPPUITests” couldn’t be loaded because it doesn’t contain a version for the current architecture. The bundle doesn’t contain a version for the current architecture. Try installing a universal version of the bundle. dlopen_preflight(/Users/user/Library/Developer/Xcode/DerivedData/MYAPP-gefifpwdxlqqbidolncfjzimagfq/Build/Products/Debug-iphonesimulator/MYAPPUITests-Runner.app/PlugIns/MYAPPUITests.xctest/MYAPPUITests): no suitable image found.	Did find: /Users/user/Library/Developer/Xcode/DerivedData/MYAPP-gefifpwdxlqqbidolncfjzimagfq/Build/Products/Debug-iphonesimulator/MYAPPUITests-Runner.app/PlugIns/MYAPPUITests.xctest/MYAPPUITests: mach-o, but wrong architecture)) Why it's ok with iOS 13.7 and why not with iOS 14.4 simulator?? Can you think something ? Regards.
8
0
8k
Apr ’22
Installing Xcode 14 beta 3 breaks Xcode 13 simulators?
After installing Xcode 14 beta 3, the iOS 15 simulators in my Xcode 13 install seem to have vanished. Adding new ones in the Devices and Simulators window does nothing. Deleting both Xcode installs and installing a fresh copy of Xcode 13.4.1 also didn't help. Seems like I'm not alone: https://twitter.com/mattkiazyk/status/1544761694341451776 https://twitter.com/bourvill/status/1544797153104625664 Anybody have ideas for how to fix? Feedback filed: FB10570079
5
4
4.2k
Jul ’22
com.apple.dt.deviceprocesscontrolservice Code=8 Error when running WidgetBundle Targets
When I try to run CharacterDetail target from the example code of EmojiRangers - Game Status Final from Widgets Code-Along of WWDC20, encountered the following error. I have been trying to replicate a similar behavior of creating a WidgetBundle in my own SwiftUI 2 app, but faced a similar issues. I am not an expert in Swift or SwiftUI, but I'm a public beta user nonetheless and have created a handful of apps using the SwiftUI. My understanding of this problem is, when creating bundle and assigning @main, as per the error messages, Xcode gets confused on which widget to show on the Simulator. i.e., EmojiRangers app contains EmojiRangerBundle inside LeaderboardWidget.swift. This bundle contains calls to two different widgets: EmojiRangerWidget() LeaderboardWidget() I speculate that Xcode is not able to understand which Widget to preview when run on the Simulator. I hope @apple figures out the solution. Following is the error message: SendProcessControlEvent:toPid: encountered an error: Error Domain=com.apple.dt.deviceprocesscontrolservice Code=8 "Failed to show Widget 'com.example.apple-samplecode.Emoji-Rangers.Intermediate' error: Error Domain=SBAvocadoDebuggingControllerErrorDomain Code=2 "Please specify the widget kind in the scheme's Environment Variables using the key '_XCWidgetKind' to be one of: 'EmojiRangerWidget', 'LeaderboardWidget'" UserInfo={NSLocalizedDescription=Please specify the widget kind in the scheme's Environment Variables using the key '_XCWidgetKind' to be one of: 'EmojiRangerWidget', 'LeaderboardWidget'}." UserInfo={NSLocalizedDescription=Failed to show Widget 'com.example.apple-samplecode.Emoji-Rangers.Intermediate' error: Error Domain=SBAvocadoDebuggingControllerErrorDomain Code=2 "Please specify the widget kind in the scheme's Environment Variables using the key '_XCWidgetKind' to be one of: 'EmojiRangerWidget', 'LeaderboardWidget'" UserInfo={NSLocalizedDescription=Please specify the widget kind in the scheme's Environment Variables using the key '_XCWidgetKind' to be one of: 'EmojiRangerWidget', 'LeaderboardWidget'}., NSUnderlyingError=0x7fda3f064360 {Error Domain=SBAvocadoDebuggingControllerErrorDomain Code=2 "Please specify the widget kind in the scheme's Environment Variables using the key '_XCWidgetKind' to be one of: 'EmojiRangerWidget', 'LeaderboardWidget'" UserInfo={NSLocalizedDescription=Please specify the widget kind in the scheme's Environment Variables using the key '_XCWidgetKind' to be one of: 'EmojiRangerWidget', 'LeaderboardWidget'}}}
5
0
7.3k
Dec ’22
image_picker crashes when picking images on simulator running on Apple Silicon M1
On an Apple Silicon M1 it is not possible to select the UIImagePicker controller to select an image. In the photo gallery, when you click on the image, the interface does nothing and does not react anything.To exit the interface you must click on the cancel button, but unfortunately it doesn't work also.It's working fine in real device device or intel processor mac simulator with same code and same iOS version. Currently I am testing on below configuration System OS: macOS Bigsur(11.2.2) chip: Apple M1 iOS Simulator: iPhone11(iOS 14.4) xCode:12.0.4 I get exception like below when i try to select image NSXPCConnection: 0x60000016a080 connection on anonymousListener or serviceListener from pid 17615: Warning: Exception caught during invocation of selector didSelectMediaWithInfoDictionary:, dropping incoming message and invalidating the connection. Exception: * -[NSURL URLByAppendingPathExtension:]: component, components, or pathExtension cannot be nil. -[NSURL URLByAppendingPathExtension:]: component, components, or pathExtension cannot be nil. ( 0 CoreFoundation 0x00007fff20421af6 __exceptionPreprocess + 242 1 libobjc.A.dylib 0x00007fff20177e78 objc_exception_throw + 48 2 Foundation 0x00007fff20860900 -[NSURL(NSURLPathUtilities) URLByDeletingPathExtension] + 0 3 PhotosUI 0x00007fff3faf656a -[PUPhotoPickerExtensionHostContext _UIImagePickerControllerInfoDictionaryFromPhotoPickerInfoDictionary:] + 2177 4 PhotosUI 0x00007fff3faf5b5b -[PUPhotoPickerExtensionHostContext didSelectMediaWithInfoDictionary:] + 34 5 Foundation 0x00007fff209290e3 __NSXPCCONNECTION_IS_CALLING_OUT_TO_EXPORTED_OBJECT_S1__ + 10 6 Foundation 0x00007fff20927e1b -[NSXPCConnection _decodeAndInvokeMessageWithEvent:flags:] + 2268 7 Foundation 0x00007fff20929412 message_handler + 206 8 libxpc.dylib 0x00007fff20055cac _xpc_connection_call_event_handler + 56 9 libxpc.dylib 0x00007fff2005603e _xpc_connection_mach_event + 905 10 libdispatch.dylib 0x000000010c73ba68 _dispatch_client_callout4 + 9 11 libdispatch.dylib 0x000000010c755ba8 _dispatch_mach_msg_invoke + 550 12 libdispatch.dylib 0x000000010c7420ad _dispatch_lane_serial_drain + 307 13 libdispatch.dylib 0x000000010c756a76 _dispatch_mach_invoke + 563 14 libdispatch.dylib 0x000000010c7420ad _dispatch_lane_serial_drain + 307 15 libdispatch.dylib 0x000000010c742f9d _dispatch_lane_invoke + 493 16 libdispatch.dylib 0x000000010c74ede2 _dispatch_workloop_worker_thread + 882 17 libsystem_pthread.dylib 0x00007fff61167499 _pthread_wqthread + 314 18 libsystem_pthread.dylib 0x00007fff61166467 start_wqthread + 15 ) Eager for this to be fixed out, it is really unbelievable issue. Kindly help me to solve this.
9
0
5.3k
Sep ’21
WCSession transferFile Not Working in Simulator
We are attempting to transfer a file from watch to phone in the simulator using WCSession. Same code was working prior to latest xcode update. Any ideas why this has stopped working in the simulator after the xcode update? Configuration and approach is below...Configuration:Mojave 10.14.6, Xcode 11.3.1iOS target sdk 13.2, watchOS target sdk 6.1iOS Simulator 13.2.2, watchOS simulator 6.1.1iPhone 11 Pro Max, Apple Watch Series 5Approach:Establish WCSession from the watch app to transfer a file from the watch to the phone, session is supported and reachable.On the watch simulator:1. Call the transferFile method of WCSession without error. Invoked from the main thread.2. didFinish fileTransfer delegate invoked (background thread), error is nilOn the phone simulator:1. didReceive file delegate is never invoked - file is not received by the phoneSupplemental info:1. sendMessage of WCSession works successfully - phone receives message2. Used system console to monitor both phone and app, no suspicious errors or faults3. Fully uninstalled Xcode and Simulator, cleaned all detritus directories/files, restart MAC, reinstalled, same behavior4. Same code executes successfully on "real" iOS and watchOS devices5. Checked antivirus software, no quarantines or events interfering
12
0
4.2k
Oct ’21
Xcode 13 simulator kills internet
I recently upgraded both MacOS (to 11.6) and Xcode (to 13.0). Now, when I run my NativeScript app within an Xcode simulator, whether iOS 13.2 or 15.0, internet requests time out, both within the simulator and on the Mac itself. I can test on devices OK, and I've enabled "Allow HTTP Services" within the emulators. My only recourse is to restart the Mac.
7
1
5.3k
Jun ’23
SecItemAdd returns errSecAuthFailed
Hello, I'm experiencing a weird issue on the iOS 15 simulator (unfortunately I don't have a device with 15 installed yet). The issue I see is that the call to SecItemAdd returns OSStatus -25293 (errSecAuthFailed). The attributes dictionary passed looks like this: var query: [String : Any] = [ kSecClass as String: kSecClassGenericPassword, kSecAttrAccount as String: key, kSecAttrService as String: service, kSecAttrAccessControl as String: getSecAccessControl(), kSecUseAuthenticationContext as String: context, kSecValueData as String: data         ] the getSecAccessControl returns a SecAccessControl created like this:         access = SecAccessControlCreateWithFlags(nil,   kSecAttrAccessibleWhenUnlockedThisDeviceOnly,   .userPresence,   &error) if I do not add the kSecAttrAccessControl item I don't see any error. The same code works as expected on the simulator with iOS 14. Looking at the documentation didn't help, anybody has hints about this? Maybe it's bug I'm not aware of? Thank you in advance
19
2
10k
Jun ’22
WatchConnectivity for Xcode 12 / watchOS 7 / iOS 14 beta broken
While for watchOS 6 simulators the WCSession.default.transferFile(...) function from watchOS to iOS was already broken (FB7812483) while working flawlessly for watchOS 5 now with a Xcode 12 / watchOS 7 / iOS 14 beta combination that's still the case (FB7812526). Other things like WCSession.default.updateApplicationContext(...) are now also broken (FB7806876) which makes it basically impossible to work with WatchConnectivity and simulators for watchOS 7. I used https://developer.apple.com/documentation/watchconnectivity/using_watch_connectivity_to_communicate_between_your_apple_watch_app_and_iphone_app as an example project but originally discovered those problems in another app. I'm a big fan of Apple Watch but this situation makes it really hard to properly develop for it.
15
0
3.3k
Sep ’21
Simulator install stuck
Am trying to add 11.x ios simulator in XCode 11.3. Gets through the download step, then just hangs on the install step, no progress made. After some googling, found out that the downloads go to ~/Library/Caches/com.apple.dt.Xcode/Downloads directory, and I do see two images in there (plus some other file):-rw-r--r--@ 1.9G Jan 7 11:18 com.apple.pkg.iPhoneSimulatorSDK11_0-11.0.1.1508875951.dmg-rw-r--r--@ 2.0G Jan 7 13:27 com.apple.pkg.iPhoneSimulatorSDK11_4-11.4.1.1527703358.dmg-rw-r--r-- 60K Jan 7 13:40 245b1dfeeb10ec6e5367d977f7d25489f9996b13.dvtdownloadableindexBut unable to do the install. Progress bar just stuck. Have restarted XCode (have to force quit due to sumulator install in progress) and rebooted laptop, no luck. Any advice?
7
1
5.8k
Jun ’23
Simulator causing Mac audio distortion
I am experiencing an issue where my Mac's speakers will crackle and pop when running an app on the Simulator or even when previewing SwiftUI with Live Preview. I am using a 16" MacBook Pro (i9) and I'm running Xcode 12.2 on Big Sur (11.0.1). Killing coreaudiod temporarily fixes the problem however this is not much of a solution. Is anyone else having this problem?
17
7
13k
Oct ’25
URLSession is broken in iOS 18.4 RC Simulator
I'm seeing fully reproducible issues with URLSession on iOS 18.4 RC Simulator running from Xcode 16.3 RC. URLSession seems to get into a broken state after a second app run. The following sample succeeds in fetching the JSON on first app run but when the app is closed and ran again it fails with one of these errors: Error: Error Domain=NSURLErrorDomain Code=-1005 "The network connection was lost." Error: Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." I'm wondering if this something related to my OS setup or is this due to internal URLSession changes in iOS 18.4. Already submitted as FB17006003. Sample code attached below: import SwiftUI @main struct NetworkIssue18_4App: App { var body: some Scene { WindowGroup { ContentView() } } } struct ContentView: View { @State private var message: String = "" var body: some View { VStack { Text(message) Button("Try Again") { Task { await fetch() } } } .task { await fetch() } } private func fetch() async { message = "Loading..." let url = URL(string: "https://poetrydb.org/title/Ozymandias/lines.json")! let session = URLSession.shared do { let response = try await session.data(from: url) print("Response: \(response)") message = "Success, data length: \(response.0.count)" } catch { print("Error: \(error)") message = "Error: \(error.localizedDescription)" } } }
55
41
25k
Sep ’25
Xcode watchOS 9 runtime issue
Hi, I am attempting to run my app in Xcode 14 beta 4. It requires me to download the watchOS 9 runtime in order to build it, with a prompt which states the following: Download Xcode support for watchOS 9.0? This scheme builds an embedded Apple Watch app. watchOS 9.0 must be installed in order to run the scheme. The first time I tried this, it downloaded but then showed an error which I can't remember. However, the main issue is that now I can no longer try it again. Every time I try to build my app, it shows the same prompt, but this time the download of the watchOS 9 runtime fails every time with the same message: Duplicate of 862D055C-0B48-4F10-BAF9-EB4B35F559FA Domain: SimDiskImageErrorDomain Code: 5 User Info: { DVTErrorCreationDateKey = "2022-07-31 14:12:11 +0000"; unusableErrorDetail = ""; } -- System Information macOS Version 12.4 (Build 21F79) Xcode 14.0 (21322) (Build 14A5284g) Timestamp: 2022-07-31T16:12:11+02:00 As a result, I am unable to build my app. If I run the command "xcrun simctl runtime list" then I can see the 862D055C-0B48-4F10-BAF9-EB4B35F559FA that it is referring to: == Disk Images == -- iOS -- iOS 12.4 (16G73) - 66A29B59-5BEF-496D-BFB0-F9C1F21A6F28 (Ready) iOS 13.7 (17H22) - 2A03BB12-25EB-40C8-9AAC-70B0169225A7 (Ready) iOS 14.5 (18E182) - 8C98D5B2-2130-40D4-B220-E6CDBD67F41C (Ready) iOS 16.0 (20A5328h) - 8F909927-98C9-4FAB-8B90-048BB9A45031 (Ready) -- watchOS -- watchOS 9.0 (20R5332f) - A8C24E46-2134-4373-8BFE-3DB9AE1F2A3D (Unusable - Other Failure: Duplicate of 862D055C-0B48-4F10-BAF9-EB4B35F559FA) watchOS 9.0 (20R5332f) - 862D055C-0B48-4F10-BAF9-EB4B35F559FA (Ready) watchOS 9.0 (20R5332f) - 2A633A9E-C9C8-4AB0-AF67-45A84AC94F09 (Unusable - Other Failure: Duplicate of A8C24E46-2134-4373-8BFE-3DB9AE1F2A3D) watchOS 9.0 (20R5332f) - 8067AFE2-75DE-460E-9E78-02CA664D0D1A (Unusable - Other Failure: Duplicate of 862D055C-0B48-4F10-BAF9-EB4B35F559FA) watchOS 9.0 (20R5332f) - E06DB92C-832A-429C-B8F8-376D62AA4BB9 (Unusable - Other Failure: Duplicate of 862D055C-0B48-4F10-BAF9-EB4B35F559FA) watchOS 9.0 (20R5332f) - ABCC542C-D2EC-472C-B82B-33E3D530D717 (Unusable - Other Failure: Duplicate of 862D055C-0B48-4F10-BAF9-EB4B35F559FA) watchOS 9.0 (20R5332f) - 47EACFB4-B1D2-4C9C-9276-A253F6370528 (Unusable - Other Failure: Duplicate of 862D055C-0B48-4F10-BAF9-EB4B35F559FA) watchOS 9.0 (20R5332f) - 6C85F221-7D10-4BE1-9573-66E8B8A805A2 (Unusable - Other Failure: Duplicate of 862D055C-0B48-4F10-BAF9-EB4B35F559FA) However, attempts to delete it have been unsuccessful. I have uninstalled Xcode, deleted various Xcode cache files, data in the ~/Library/Developer folder as well as in the /Library/Developer folder, but it still seems to persist. It doesn't seem to be easy to delete a runtime from this list. If I run the command "xcrun simctl runtime delete 862D055C-0B48-4F10-BAF9-EB4B35F559FA", then I get the following error: Cannot stage disk image or bundle for delete: 862D055C-0B48-4F10-BAF9-EB4B35F559FA Underlying error (domain=NSCocoaErrorDomain, code=4): “862D055C-0B48-4F10-BAF9-EB4B35F559FA.dmg” couldn’t be moved to “NSIRD_simdiskimaged_mn8bfc” because either the former doesn’t exist, or the folder containing the latter doesn’t exist. The file doesn’t exist. Does anyone have any ideas about how I can resolve this?
4
2
6.9k
Nov ’22
App will crash on iOS 14 simulator Xcode 12
iOS 14 Simulator do not working objc[4521]: Class CSAudioFileManager is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/SpeakerRecognition.framework/SpeakerRecognition (0x141912210) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/CoreSpeech.framework/CoreSpeech (0x1407ee990). One of the two will be used. Which one is undefined. objc[4521]: Class CSAudioFileReader is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/SpeakerRecognition.framework/SpeakerRecognition (0x1419121c0) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/CoreSpeech.framework/CoreSpeech (0x1407eec10). One of the two will be used. Which one is undefined. objc[4521]: Class CSVoiceIdXPCClient is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/SpeakerRecognition.framework/SpeakerRecognition (0x141912b70) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/CoreSpeech.framework/CoreSpeech (0x1407eee90). One of the two will be used. Which one is undefined. ... There is a lot of something more like this. console will complain like above log. iOS 13 simulator running normally. if there is any hellp will be appreciated
7
0
5.2k
Mar ’23
Xcode 14 Simulator spamming diagnosticd
When I start a simulator from Xcode 14, I immediately get two diagnosticd processes starting the fans to warm the house. So much (>70% CPU) that the sim is essentially unusable. Looking in Console it looks like apsd is responsible, the culprit seems to be that the certificate store is missing/unsafe. I'm on a 2018 MacBook Pro with touch ID but obviously not Apple Sillicon. I "solved" this by pausing apsd: killall -STOP apsd See log excerpt below. standaard 12:28:19.257217+0200 apsd copyTokenForDomain sandbox.push.apple.com (null) standaard 12:28:19.257874+0200 apsd copyTokenForDomain sandbox.push.apple.com (null) standaard 12:28:19.258404+0200 apsd <APSCourier 0x7fcdfbc04960 development> Sending presence message for deviceToken with token NO on interface: NonCellular standaard 12:28:19.258511+0200 apsd Could not get certificate from simulator with error Error Domain=SimIdentityErrorDomain Code=100 "Connection invalid" UserInfo={NSLocalizedDescription=Connection invalid}! Aborting... standaard 12:28:19.278525+0200 apsd nw_socket_handle_socket_event [C333.1.1:3] Socket received READ_CLOSE event standaard 12:28:19.278621+0200 apsd Connection 333: final read 0:0, complete[Y], final[N] standaard 12:28:19.278685+0200 apsd Connection 333: read-side closed fout 12:28:19.278722+0200 apsd Connection 333: missing error, so heuristics synthesized error(1:53)
4
5
2.3k
Aug ’22
How can I download iOS 15.3 for simulator with xcode 13.2.1
Hi everyone, My app is rejected due to some errors on iPad iOS 15.3. I can't replicate the errors on my iPhone and iPad both with iOS 15.3. So I was trying it on simulator. With my xcode 13.2.1, the latest iOS version is 15.2. I tried the Components in xcode preference. The latest I can see on the list is iOS 15.0. Just wondering how can I download the iOS 15.3 for my simulator? Many Thanks, Michael
12
0
5.6k
Mar ’22
Simulator ARM64 Support for Static Libraries in M1 Machines
We have an SDK project that contains a static library (.a) with binaries for arm64, armv7 (Device) and x86_64, i386 (Simulator). When we run in M1 Macbooks we are unable to run on arm64 simulators and get the following error: building for iOS Simulator, but linking in file built for iOS Our SDK is built into an XCframework bundle, however this issue still persists. We have tried building the static library into its own XCframework as well by separating the architectures into two different binaries, one for Device and one for Simulator, however we still didn't get it to work. We would like to know if this is a limitation or current issue on Xcode or if there are certain steps we need to follow to get this static library to be supported on arm64 simulators.
7
0
12k
Jun ’22
Command CompileAssetCatalog failed with a nonzero exit code
I keep getting the following error when trying to build my app: 2022-07-08 19:59:03.837 ibtoold[65032:257043] DEBUG: Added to environment: {     TMPDIR = "/var/folders/n1/mn972l7d7t53rk8kghkt9b4h0000gp/T/61CA0AE1-7540-4D8C-94B2-3BF37B7EB31C"; } /* com.apple.actool.errors */ : error: Failed to launch AssetCatalogSimulatorAgent via CoreSimulator spawn     Failure Reason: Failed to spawn AssetCatalogSimulatorAgent on IBSimDeviceTypeiPad2x (3E230588-1FA3-45F9-AB2E-C02394631AA7, (null), Shutdown)     Underlying Errors:         Description: Invalid device: The specified device is not available for spawning processes. This is happening with Xcode 13.4.1 This started after installing the Xcode 14 beta along side Xcode 13.4.1 (I never actually opened or used the beta before this started happening). Things I've tried: deleting DerrivedData changing the DerrivedData directory uninstalling Xcode 13 and 14 beta, and only reinstalling Xcode 13. restarting my computer. Anyone else see this? Also a side note: I can't seem to add iOS 15 simulators after this started happening. I wonder if its related. EDIT: Upon further digging im seeing this error message in my CoreSimulator.log file: Jul 8 20:06:10 bmifsud-mbp CoreSimulatorService[2918] <Notice>: Could not locate default .GlobalPreferences.plist for iOS 15.5 (15.5 - 19F70) - com.apple.CoreSimulator.SimRuntime.iOS-15-5 Is there any way to reset this preference?
5
0
11k
Apr ’23
WatchKit 1.0 apps are no longer installable on this watchOS version.
I have downloaded Xcode 12, the newest version, from App Store. On my exising iOS project, I added a WatchKit app with deployment target of watchOS 7.0. However, when I try to run the watch app on simulator, it tries to install then gives me this error in an alert: This app could not be installed at this time. Could not install at this time. WatchKit 1.0 apps are no longer installable on this watchOS version. I don't know what's wrong with the target that causes it to give this error. Like said before, the deployment target for the app is watchOS 7 and the app uses SwiftUI. I also can't get a preview on SwiftUI because it gives me the same error saying cannot install. I have another iOS project with a WatchKit app that is running just fine. Do you have this problem also or know how to resolve it? Any help is appreciated.
5
1
3.1k
Jul ’22
Same UI Testing fail with iOS simulator 14.4 but success with iOS simulator 13.7
Hello, I'm in a big project app with unit testing and ui testing running well. Recently, one member of team, buy a MacBook Pro M1 with Big Sur 11.1 and try to execute the ui testing with the new Xcode 12.4 (available today 27/01/21 from Mac AppStore). When he selects any simulator with iOS 13.7 it's ok, but if he selects iOS 14.4 then fail. It doesn't matter if it's an iPad or an iPhone. The error talks about architectures but the settings haven't any custom config depends iOS version. Showing All Messages MYAPPUITests-Runner.app (72942) encountered an error (Failed to load the test bundle. If you believe this error represents a bug, please attach the result bundle at /Users/user/Library/Developer/Xcode/DerivedData/MYAPP-gefifpwdxlqqbidolncfjzimagfq/Logs/Test/Test-MYAPP-2021.01.27_23-13-22-+0100.xcresult. (Underlying Error: The bundle “MYAPPUITests” couldn’t be loaded because it doesn’t contain a version for the current architecture. The bundle doesn’t contain a version for the current architecture. Try installing a universal version of the bundle. dlopen_preflight(/Users/user/Library/Developer/Xcode/DerivedData/MYAPP-gefifpwdxlqqbidolncfjzimagfq/Build/Products/Debug-iphonesimulator/MYAPPUITests-Runner.app/PlugIns/MYAPPUITests.xctest/MYAPPUITests): no suitable image found.&#9;Did find: /Users/user/Library/Developer/Xcode/DerivedData/MYAPP-gefifpwdxlqqbidolncfjzimagfq/Build/Products/Debug-iphonesimulator/MYAPPUITests-Runner.app/PlugIns/MYAPPUITests.xctest/MYAPPUITests: mach-o, but wrong architecture)) Why it's ok with iOS 13.7 and why not with iOS 14.4 simulator?? Can you think something ? Regards.
Replies
8
Boosts
0
Views
8k
Activity
Apr ’22
Installing Xcode 14 beta 3 breaks Xcode 13 simulators?
After installing Xcode 14 beta 3, the iOS 15 simulators in my Xcode 13 install seem to have vanished. Adding new ones in the Devices and Simulators window does nothing. Deleting both Xcode installs and installing a fresh copy of Xcode 13.4.1 also didn't help. Seems like I'm not alone: https://twitter.com/mattkiazyk/status/1544761694341451776 https://twitter.com/bourvill/status/1544797153104625664 Anybody have ideas for how to fix? Feedback filed: FB10570079
Replies
5
Boosts
4
Views
4.2k
Activity
Jul ’22
com.apple.dt.deviceprocesscontrolservice Code=8 Error when running WidgetBundle Targets
When I try to run CharacterDetail target from the example code of EmojiRangers - Game Status Final from Widgets Code-Along of WWDC20, encountered the following error. I have been trying to replicate a similar behavior of creating a WidgetBundle in my own SwiftUI 2 app, but faced a similar issues. I am not an expert in Swift or SwiftUI, but I'm a public beta user nonetheless and have created a handful of apps using the SwiftUI. My understanding of this problem is, when creating bundle and assigning @main, as per the error messages, Xcode gets confused on which widget to show on the Simulator. i.e., EmojiRangers app contains EmojiRangerBundle inside LeaderboardWidget.swift. This bundle contains calls to two different widgets: EmojiRangerWidget() LeaderboardWidget() I speculate that Xcode is not able to understand which Widget to preview when run on the Simulator. I hope @apple figures out the solution. Following is the error message: SendProcessControlEvent:toPid: encountered an error: Error Domain=com.apple.dt.deviceprocesscontrolservice Code=8 "Failed to show Widget 'com.example.apple-samplecode.Emoji-Rangers.Intermediate' error: Error Domain=SBAvocadoDebuggingControllerErrorDomain Code=2 "Please specify the widget kind in the scheme's Environment Variables using the key '_XCWidgetKind' to be one of: 'EmojiRangerWidget', 'LeaderboardWidget'" UserInfo={NSLocalizedDescription=Please specify the widget kind in the scheme's Environment Variables using the key '_XCWidgetKind' to be one of: 'EmojiRangerWidget', 'LeaderboardWidget'}." UserInfo={NSLocalizedDescription=Failed to show Widget 'com.example.apple-samplecode.Emoji-Rangers.Intermediate' error: Error Domain=SBAvocadoDebuggingControllerErrorDomain Code=2 "Please specify the widget kind in the scheme's Environment Variables using the key '_XCWidgetKind' to be one of: 'EmojiRangerWidget', 'LeaderboardWidget'" UserInfo={NSLocalizedDescription=Please specify the widget kind in the scheme's Environment Variables using the key '_XCWidgetKind' to be one of: 'EmojiRangerWidget', 'LeaderboardWidget'}., NSUnderlyingError=0x7fda3f064360 {Error Domain=SBAvocadoDebuggingControllerErrorDomain Code=2 "Please specify the widget kind in the scheme's Environment Variables using the key '_XCWidgetKind' to be one of: 'EmojiRangerWidget', 'LeaderboardWidget'" UserInfo={NSLocalizedDescription=Please specify the widget kind in the scheme's Environment Variables using the key '_XCWidgetKind' to be one of: 'EmojiRangerWidget', 'LeaderboardWidget'}}}
Replies
5
Boosts
0
Views
7.3k
Activity
Dec ’22
image_picker crashes when picking images on simulator running on Apple Silicon M1
On an Apple Silicon M1 it is not possible to select the UIImagePicker controller to select an image. In the photo gallery, when you click on the image, the interface does nothing and does not react anything.To exit the interface you must click on the cancel button, but unfortunately it doesn't work also.It's working fine in real device device or intel processor mac simulator with same code and same iOS version. Currently I am testing on below configuration System OS: macOS Bigsur(11.2.2) chip: Apple M1 iOS Simulator: iPhone11(iOS 14.4) xCode:12.0.4 I get exception like below when i try to select image NSXPCConnection: 0x60000016a080 connection on anonymousListener or serviceListener from pid 17615: Warning: Exception caught during invocation of selector didSelectMediaWithInfoDictionary:, dropping incoming message and invalidating the connection. Exception: * -[NSURL URLByAppendingPathExtension:]: component, components, or pathExtension cannot be nil. -[NSURL URLByAppendingPathExtension:]: component, components, or pathExtension cannot be nil. ( 0 CoreFoundation 0x00007fff20421af6 __exceptionPreprocess + 242 1 libobjc.A.dylib 0x00007fff20177e78 objc_exception_throw + 48 2 Foundation 0x00007fff20860900 -[NSURL(NSURLPathUtilities) URLByDeletingPathExtension] + 0 3 PhotosUI 0x00007fff3faf656a -[PUPhotoPickerExtensionHostContext _UIImagePickerControllerInfoDictionaryFromPhotoPickerInfoDictionary:] + 2177 4 PhotosUI 0x00007fff3faf5b5b -[PUPhotoPickerExtensionHostContext didSelectMediaWithInfoDictionary:] + 34 5 Foundation 0x00007fff209290e3 __NSXPCCONNECTION_IS_CALLING_OUT_TO_EXPORTED_OBJECT_S1__ + 10 6 Foundation 0x00007fff20927e1b -[NSXPCConnection _decodeAndInvokeMessageWithEvent:flags:] + 2268 7 Foundation 0x00007fff20929412 message_handler + 206 8 libxpc.dylib 0x00007fff20055cac _xpc_connection_call_event_handler + 56 9 libxpc.dylib 0x00007fff2005603e _xpc_connection_mach_event + 905 10 libdispatch.dylib 0x000000010c73ba68 _dispatch_client_callout4 + 9 11 libdispatch.dylib 0x000000010c755ba8 _dispatch_mach_msg_invoke + 550 12 libdispatch.dylib 0x000000010c7420ad _dispatch_lane_serial_drain + 307 13 libdispatch.dylib 0x000000010c756a76 _dispatch_mach_invoke + 563 14 libdispatch.dylib 0x000000010c7420ad _dispatch_lane_serial_drain + 307 15 libdispatch.dylib 0x000000010c742f9d _dispatch_lane_invoke + 493 16 libdispatch.dylib 0x000000010c74ede2 _dispatch_workloop_worker_thread + 882 17 libsystem_pthread.dylib 0x00007fff61167499 _pthread_wqthread + 314 18 libsystem_pthread.dylib 0x00007fff61166467 start_wqthread + 15 ) Eager for this to be fixed out, it is really unbelievable issue. Kindly help me to solve this.
Replies
9
Boosts
0
Views
5.3k
Activity
Sep ’21
WCSession transferFile Not Working in Simulator
We are attempting to transfer a file from watch to phone in the simulator using WCSession. Same code was working prior to latest xcode update. Any ideas why this has stopped working in the simulator after the xcode update? Configuration and approach is below...Configuration:Mojave 10.14.6, Xcode 11.3.1iOS target sdk 13.2, watchOS target sdk 6.1iOS Simulator 13.2.2, watchOS simulator 6.1.1iPhone 11 Pro Max, Apple Watch Series 5Approach:Establish WCSession from the watch app to transfer a file from the watch to the phone, session is supported and reachable.On the watch simulator:1. Call the transferFile method of WCSession without error. Invoked from the main thread.2. didFinish fileTransfer delegate invoked (background thread), error is nilOn the phone simulator:1. didReceive file delegate is never invoked - file is not received by the phoneSupplemental info:1. sendMessage of WCSession works successfully - phone receives message2. Used system console to monitor both phone and app, no suspicious errors or faults3. Fully uninstalled Xcode and Simulator, cleaned all detritus directories/files, restart MAC, reinstalled, same behavior4. Same code executes successfully on "real" iOS and watchOS devices5. Checked antivirus software, no quarantines or events interfering
Replies
12
Boosts
0
Views
4.2k
Activity
Oct ’21
Xcode 13 simulator kills internet
I recently upgraded both MacOS (to 11.6) and Xcode (to 13.0). Now, when I run my NativeScript app within an Xcode simulator, whether iOS 13.2 or 15.0, internet requests time out, both within the simulator and on the Mac itself. I can test on devices OK, and I've enabled "Allow HTTP Services" within the emulators. My only recourse is to restart the Mac.
Replies
7
Boosts
1
Views
5.3k
Activity
Jun ’23
SecItemAdd returns errSecAuthFailed
Hello, I'm experiencing a weird issue on the iOS 15 simulator (unfortunately I don't have a device with 15 installed yet). The issue I see is that the call to SecItemAdd returns OSStatus -25293 (errSecAuthFailed). The attributes dictionary passed looks like this: var query: [String : Any] = [ kSecClass as String: kSecClassGenericPassword, kSecAttrAccount as String: key, kSecAttrService as String: service, kSecAttrAccessControl as String: getSecAccessControl(), kSecUseAuthenticationContext as String: context, kSecValueData as String: data         ] the getSecAccessControl returns a SecAccessControl created like this:         access = SecAccessControlCreateWithFlags(nil,   kSecAttrAccessibleWhenUnlockedThisDeviceOnly,   .userPresence,   &amp;error) if I do not add the kSecAttrAccessControl item I don't see any error. The same code works as expected on the simulator with iOS 14. Looking at the documentation didn't help, anybody has hints about this? Maybe it's bug I'm not aware of? Thank you in advance
Replies
19
Boosts
2
Views
10k
Activity
Jun ’22
WatchConnectivity for Xcode 12 / watchOS 7 / iOS 14 beta broken
While for watchOS 6 simulators the WCSession.default.transferFile(...) function from watchOS to iOS was already broken (FB7812483) while working flawlessly for watchOS 5 now with a Xcode 12 / watchOS 7 / iOS 14 beta combination that's still the case (FB7812526). Other things like WCSession.default.updateApplicationContext(...) are now also broken (FB7806876) which makes it basically impossible to work with WatchConnectivity and simulators for watchOS 7. I used https://developer.apple.com/documentation/watchconnectivity/using_watch_connectivity_to_communicate_between_your_apple_watch_app_and_iphone_app as an example project but originally discovered those problems in another app. I'm a big fan of Apple Watch but this situation makes it really hard to properly develop for it.
Replies
15
Boosts
0
Views
3.3k
Activity
Sep ’21
Simulator install stuck
Am trying to add 11.x ios simulator in XCode 11.3. Gets through the download step, then just hangs on the install step, no progress made. After some googling, found out that the downloads go to ~/Library/Caches/com.apple.dt.Xcode/Downloads directory, and I do see two images in there (plus some other file):-rw-r--r--@ 1.9G Jan 7 11:18 com.apple.pkg.iPhoneSimulatorSDK11_0-11.0.1.1508875951.dmg-rw-r--r--@ 2.0G Jan 7 13:27 com.apple.pkg.iPhoneSimulatorSDK11_4-11.4.1.1527703358.dmg-rw-r--r-- 60K Jan 7 13:40 245b1dfeeb10ec6e5367d977f7d25489f9996b13.dvtdownloadableindexBut unable to do the install. Progress bar just stuck. Have restarted XCode (have to force quit due to sumulator install in progress) and rebooted laptop, no luck. Any advice?
Replies
7
Boosts
1
Views
5.8k
Activity
Jun ’23
Simulator causing Mac audio distortion
I am experiencing an issue where my Mac's speakers will crackle and pop when running an app on the Simulator or even when previewing SwiftUI with Live Preview. I am using a 16" MacBook Pro (i9) and I'm running Xcode 12.2 on Big Sur (11.0.1). Killing coreaudiod temporarily fixes the problem however this is not much of a solution. Is anyone else having this problem?
Replies
17
Boosts
7
Views
13k
Activity
Oct ’25
How to get .ipa onto device now that iTunes doesn't contain apps?
I used to drag my .ipa file into iTunes and sync to test my ad-hoc build. The 'new' iTunes (12.7.0.166) doesn't contain apps any more. So how are you getting your .ipa onto your physical device?
Replies
30
Boosts
0
Views
99k
Activity
Sep ’21
URLSession is broken in iOS 18.4 RC Simulator
I'm seeing fully reproducible issues with URLSession on iOS 18.4 RC Simulator running from Xcode 16.3 RC. URLSession seems to get into a broken state after a second app run. The following sample succeeds in fetching the JSON on first app run but when the app is closed and ran again it fails with one of these errors: Error: Error Domain=NSURLErrorDomain Code=-1005 "The network connection was lost." Error: Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." I'm wondering if this something related to my OS setup or is this due to internal URLSession changes in iOS 18.4. Already submitted as FB17006003. Sample code attached below: import SwiftUI @main struct NetworkIssue18_4App: App { var body: some Scene { WindowGroup { ContentView() } } } struct ContentView: View { @State private var message: String = "" var body: some View { VStack { Text(message) Button("Try Again") { Task { await fetch() } } } .task { await fetch() } } private func fetch() async { message = "Loading..." let url = URL(string: "https://poetrydb.org/title/Ozymandias/lines.json")! let session = URLSession.shared do { let response = try await session.data(from: url) print("Response: \(response)") message = "Success, data length: \(response.0.count)" } catch { print("Error: \(error)") message = "Error: \(error.localizedDescription)" } } }
Replies
55
Boosts
41
Views
25k
Activity
Sep ’25
Xcode watchOS 9 runtime issue
Hi, I am attempting to run my app in Xcode 14 beta 4. It requires me to download the watchOS 9 runtime in order to build it, with a prompt which states the following: Download Xcode support for watchOS 9.0? This scheme builds an embedded Apple Watch app. watchOS 9.0 must be installed in order to run the scheme. The first time I tried this, it downloaded but then showed an error which I can't remember. However, the main issue is that now I can no longer try it again. Every time I try to build my app, it shows the same prompt, but this time the download of the watchOS 9 runtime fails every time with the same message: Duplicate of 862D055C-0B48-4F10-BAF9-EB4B35F559FA Domain: SimDiskImageErrorDomain Code: 5 User Info: { DVTErrorCreationDateKey = "2022-07-31 14:12:11 +0000"; unusableErrorDetail = ""; } -- System Information macOS Version 12.4 (Build 21F79) Xcode 14.0 (21322) (Build 14A5284g) Timestamp: 2022-07-31T16:12:11+02:00 As a result, I am unable to build my app. If I run the command "xcrun simctl runtime list" then I can see the 862D055C-0B48-4F10-BAF9-EB4B35F559FA that it is referring to: == Disk Images == -- iOS -- iOS 12.4 (16G73) - 66A29B59-5BEF-496D-BFB0-F9C1F21A6F28 (Ready) iOS 13.7 (17H22) - 2A03BB12-25EB-40C8-9AAC-70B0169225A7 (Ready) iOS 14.5 (18E182) - 8C98D5B2-2130-40D4-B220-E6CDBD67F41C (Ready) iOS 16.0 (20A5328h) - 8F909927-98C9-4FAB-8B90-048BB9A45031 (Ready) -- watchOS -- watchOS 9.0 (20R5332f) - A8C24E46-2134-4373-8BFE-3DB9AE1F2A3D (Unusable - Other Failure: Duplicate of 862D055C-0B48-4F10-BAF9-EB4B35F559FA) watchOS 9.0 (20R5332f) - 862D055C-0B48-4F10-BAF9-EB4B35F559FA (Ready) watchOS 9.0 (20R5332f) - 2A633A9E-C9C8-4AB0-AF67-45A84AC94F09 (Unusable - Other Failure: Duplicate of A8C24E46-2134-4373-8BFE-3DB9AE1F2A3D) watchOS 9.0 (20R5332f) - 8067AFE2-75DE-460E-9E78-02CA664D0D1A (Unusable - Other Failure: Duplicate of 862D055C-0B48-4F10-BAF9-EB4B35F559FA) watchOS 9.0 (20R5332f) - E06DB92C-832A-429C-B8F8-376D62AA4BB9 (Unusable - Other Failure: Duplicate of 862D055C-0B48-4F10-BAF9-EB4B35F559FA) watchOS 9.0 (20R5332f) - ABCC542C-D2EC-472C-B82B-33E3D530D717 (Unusable - Other Failure: Duplicate of 862D055C-0B48-4F10-BAF9-EB4B35F559FA) watchOS 9.0 (20R5332f) - 47EACFB4-B1D2-4C9C-9276-A253F6370528 (Unusable - Other Failure: Duplicate of 862D055C-0B48-4F10-BAF9-EB4B35F559FA) watchOS 9.0 (20R5332f) - 6C85F221-7D10-4BE1-9573-66E8B8A805A2 (Unusable - Other Failure: Duplicate of 862D055C-0B48-4F10-BAF9-EB4B35F559FA) However, attempts to delete it have been unsuccessful. I have uninstalled Xcode, deleted various Xcode cache files, data in the ~/Library/Developer folder as well as in the /Library/Developer folder, but it still seems to persist. It doesn't seem to be easy to delete a runtime from this list. If I run the command "xcrun simctl runtime delete 862D055C-0B48-4F10-BAF9-EB4B35F559FA", then I get the following error: Cannot stage disk image or bundle for delete: 862D055C-0B48-4F10-BAF9-EB4B35F559FA Underlying error (domain=NSCocoaErrorDomain, code=4): “862D055C-0B48-4F10-BAF9-EB4B35F559FA.dmg” couldn’t be moved to “NSIRD_simdiskimaged_mn8bfc” because either the former doesn’t exist, or the folder containing the latter doesn’t exist. The file doesn’t exist. Does anyone have any ideas about how I can resolve this?
Replies
4
Boosts
2
Views
6.9k
Activity
Nov ’22
App will crash on iOS 14 simulator Xcode 12
iOS 14 Simulator do not working objc[4521]: Class CSAudioFileManager is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/SpeakerRecognition.framework/SpeakerRecognition (0x141912210) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/CoreSpeech.framework/CoreSpeech (0x1407ee990). One of the two will be used. Which one is undefined. objc[4521]: Class CSAudioFileReader is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/SpeakerRecognition.framework/SpeakerRecognition (0x1419121c0) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/CoreSpeech.framework/CoreSpeech (0x1407eec10). One of the two will be used. Which one is undefined. objc[4521]: Class CSVoiceIdXPCClient is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/SpeakerRecognition.framework/SpeakerRecognition (0x141912b70) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/CoreSpeech.framework/CoreSpeech (0x1407eee90). One of the two will be used. Which one is undefined. ... There is a lot of something more like this. console will complain like above log. iOS 13 simulator running normally. if there is any hellp will be appreciated
Replies
7
Boosts
0
Views
5.2k
Activity
Mar ’23
Xcode 11.4: simulator title bar
Is there way to hide new simulator's title bar? I use simulator for taking screenshots with device bezels for appstore. With this new title bar it is not possible anymore.
Replies
17
Boosts
0
Views
16k
Activity
Sep ’22
Xcode 14 Simulator spamming diagnosticd
When I start a simulator from Xcode 14, I immediately get two diagnosticd processes starting the fans to warm the house. So much (>70% CPU) that the sim is essentially unusable. Looking in Console it looks like apsd is responsible, the culprit seems to be that the certificate store is missing/unsafe. I'm on a 2018 MacBook Pro with touch ID but obviously not Apple Sillicon. I "solved" this by pausing apsd: killall -STOP apsd See log excerpt below. standaard 12:28:19.257217+0200 apsd copyTokenForDomain sandbox.push.apple.com (null) standaard 12:28:19.257874+0200 apsd copyTokenForDomain sandbox.push.apple.com (null) standaard 12:28:19.258404+0200 apsd <APSCourier 0x7fcdfbc04960 development> Sending presence message for deviceToken with token NO on interface: NonCellular standaard 12:28:19.258511+0200 apsd Could not get certificate from simulator with error Error Domain=SimIdentityErrorDomain Code=100 "Connection invalid" UserInfo={NSLocalizedDescription=Connection invalid}! Aborting... standaard 12:28:19.278525+0200 apsd nw_socket_handle_socket_event [C333.1.1:3] Socket received READ_CLOSE event standaard 12:28:19.278621+0200 apsd Connection 333: final read 0:0, complete[Y], final[N] standaard 12:28:19.278685+0200 apsd Connection 333: read-side closed fout 12:28:19.278722+0200 apsd Connection 333: missing error, so heuristics synthesized error(1:53)
Replies
4
Boosts
5
Views
2.3k
Activity
Aug ’22
How can I download iOS 15.3 for simulator with xcode 13.2.1
Hi everyone, My app is rejected due to some errors on iPad iOS 15.3. I can't replicate the errors on my iPhone and iPad both with iOS 15.3. So I was trying it on simulator. With my xcode 13.2.1, the latest iOS version is 15.2. I tried the Components in xcode preference. The latest I can see on the list is iOS 15.0. Just wondering how can I download the iOS 15.3 for my simulator? Many Thanks, Michael
Replies
12
Boosts
0
Views
5.6k
Activity
Mar ’22
Simulator ARM64 Support for Static Libraries in M1 Machines
We have an SDK project that contains a static library (.a) with binaries for arm64, armv7 (Device) and x86_64, i386 (Simulator). When we run in M1 Macbooks we are unable to run on arm64 simulators and get the following error: building for iOS Simulator, but linking in file built for iOS Our SDK is built into an XCframework bundle, however this issue still persists. We have tried building the static library into its own XCframework as well by separating the architectures into two different binaries, one for Device and one for Simulator, however we still didn't get it to work. We would like to know if this is a limitation or current issue on Xcode or if there are certain steps we need to follow to get this static library to be supported on arm64 simulators.
Replies
7
Boosts
0
Views
12k
Activity
Jun ’22
Command CompileAssetCatalog failed with a nonzero exit code
I keep getting the following error when trying to build my app: 2022-07-08 19:59:03.837 ibtoold[65032:257043] DEBUG: Added to environment: {     TMPDIR = "/var/folders/n1/mn972l7d7t53rk8kghkt9b4h0000gp/T/61CA0AE1-7540-4D8C-94B2-3BF37B7EB31C"; } /* com.apple.actool.errors */ : error: Failed to launch AssetCatalogSimulatorAgent via CoreSimulator spawn     Failure Reason: Failed to spawn AssetCatalogSimulatorAgent on IBSimDeviceTypeiPad2x (3E230588-1FA3-45F9-AB2E-C02394631AA7, (null), Shutdown)     Underlying Errors:         Description: Invalid device: The specified device is not available for spawning processes. This is happening with Xcode 13.4.1 This started after installing the Xcode 14 beta along side Xcode 13.4.1 (I never actually opened or used the beta before this started happening). Things I've tried: deleting DerrivedData changing the DerrivedData directory uninstalling Xcode 13 and 14 beta, and only reinstalling Xcode 13. restarting my computer. Anyone else see this? Also a side note: I can't seem to add iOS 15 simulators after this started happening. I wonder if its related. EDIT: Upon further digging im seeing this error message in my CoreSimulator.log file: Jul 8 20:06:10 bmifsud-mbp CoreSimulatorService[2918] <Notice>: Could not locate default .GlobalPreferences.plist for iOS 15.5 (15.5 - 19F70) - com.apple.CoreSimulator.SimRuntime.iOS-15-5 Is there any way to reset this preference?
Replies
5
Boosts
0
Views
11k
Activity
Apr ’23
WatchKit 1.0 apps are no longer installable on this watchOS version.
I have downloaded Xcode 12, the newest version, from App Store. On my exising iOS project, I added a WatchKit app with deployment target of watchOS 7.0. However, when I try to run the watch app on simulator, it tries to install then gives me this error in an alert: This app could not be installed at this time. Could not install at this time. WatchKit 1.0 apps are no longer installable on this watchOS version. I don't know what's wrong with the target that causes it to give this error. Like said before, the deployment target for the app is watchOS 7 and the app uses SwiftUI. I also can't get a preview on SwiftUI because it gives me the same error saying cannot install. I have another iOS project with a WatchKit app that is running just fine. Do you have this problem also or know how to resolve it? Any help is appreciated.
Replies
5
Boosts
1
Views
3.1k
Activity
Jul ’22