Post not yet marked as solved
I have some HLS videos that are encrypted with a key for streaming playback in my app. So far, my testing indicates that they work on device all the way through, but only in the simulator up to iOS 14.5. In iOS 15 simulators, I get a crash that appears to be within private APIs with this copied from the stack:
#0 0x0000000110584e8c in segPumpRequestCustomURLForCryptKey ()
Is anyone else getting this crash?
Post not yet marked as solved
I need to create various environments for each ios version between ios version 12 and ios version 15 on Xcode. Thanks a lot
Post not yet marked as solved
When I use the new Xcode 14 Beta 1 to build and run my app, it crashes at runtime, because it can't find the Swift system libraries. If I raise the deployment target to iOS 16.0 it runs flawlessly. I know first beta, but I'm wondering if there is a fix or how can I tell the simulator to look in the correct place for the libraries. It seems like it does not matter what path I provide in LD_RUNPATH_SEARCH_PATHS …
Library not loaded: /usr/lib/swift/libswiftCloudKit.dylib
Referenced from: <C8CD6C46-E376-3DFA-947C-1E0935237691> ~/Library/Developer/CoreSimulator/Devices/1B4680E1-AF12-45E3-871A-278258D0F095/data/Containers/Bundle/Application/C44020CB-D997-4B3E-B4CC-BDAF32A8DA60/MyApp.app/MyApp
Reason: tried:
'~/Library/Developer/Xcode/DerivedData/MyApp-bknqmionydbbegduadhkzusankxj/Build/Products/Debug-iphonesimulator/libswiftCloudKit.dylib' (no such file),
'~/Library/Developer/Xcode/DerivedData/MyApp-bknqmionydbbegduadhkzusankxj/Build/Products/Debug-watchsimulator/libswiftCloudKit.dylib' (no such file),
'/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/introspection/libswiftCloudKit.dylib' (no such file),
'/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/libswiftCloudKit.dylib' (no such file),
'/usr/lib/swift/libswiftCloudKit.dylib' (no such file, no dyld cache),
'/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libswiftCloudKit.dylib' (no such file)
Post not yet marked as solved
I want to connect a physical device (iPhone) and a simulator for CarPlay to simulate an app (ex: PlugShare App) installed on a physical device, but I would like to know if that is feasible.
★ Thing I want to do:
I want take a screenshot for PlugShare App (CarPlay side).
Screenshot like below...
https://user-images.githubusercontent.com/16476224/163707909-95fa0b68-8eca-408a-b123-86ce39062984.png
★ References:
https://developer.apple.com/carplay/documentation/CarPlay-App-Programming-Guide.pdf -> P13
https://developer.apple.com/documentation/carplay/using_the_carplay_simulator
See [Open the CarPlay Simulator]
★ environment:
Xcode: 13.3.1
physical device (iPhone): iPhone 13 Pro OS 15.4
macOS: 12.3.1 (Monterey)
Post not yet marked as solved
When I plug a device and debug an app to it, the Xcode do something that prepare that device for development and creates a item on Settings app.I want a way to, programmatically, detect on iOS app if the device is in Developer Mode or if this option is enabled on Settings app.
My Preview Canvas does not work anymore.
I already uninstalled and freshly reinstalled Xcode (App Store Version and direct download from developer.apple.com, version 13.2 with Big Sur and now updated to Monterey 12.1). I uninstalled Xcode using AppCleaner and also by clearing the clang/cache folders, as well as Lib/Dev... etc. manually, but the same error comes up over and over again.
When I run the code directly (via Run/Simulator instead of Preview/Canvas) the app shows up and works just fine.
I open Xcode, I create a new project for iOS, I resume the preview and it fails with the attached error...
Preview Canvas Diagnostics
Any help would be greatly appreciated as at the moment, I don't have a running development environment unfortunately...
Thanks in advance.
Best regards
Silvio
Post not yet marked as solved
I want to test app launch performance in my project.
Therefore I tried to use performance test with measure func and XCTApplicationLaunchMetric. But after test completion there is no any result with average time.
Here is a test example:
func testLaunchPerformance() throws {
if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 7.0, *) {
// This measures how long it takes to launch your application.
measure(metrics: [XCTApplicationLaunchMetric()]) {
XCUIApplication().launch()
}
}
}
But when I create a new empty project and add the same performance test – it works and shows app launch results.
1st image is a real project test – there is no test result.
and the 2nd image is a demo empty project test – it has performance result diagram.
I am running test on MacBook with M1 Pro chip. However, when my colleague is running the same performance test on our real project with Intel based MacBook Pro – all is fine, it shows app launch results correctly as my demo project.
I have no idea how it can be fixed, because it seems that it depends on M1 chip 🤷🏻♂️.
May be somebody have a solution?
Simulator doesn't open when running builds on xCode
sometimes restarting helps but this is happening more often than not now. Any help would be appreciated!
Post not yet marked as solved
Hello!
I have a problem.
When I successfully build the sim it says: (screenshot)
What's happening there?
Thank you!
Post not yet marked as solved
I've downloaded Apple's metal simulator example from here
https://developer.apple.com/documentation/metal/supporting_simulator_in_a_metal_app
and tried simulating an iphone 11 with 11.5 and 12 using iOS, and iPad 9th gen. I get the error below when running the simulator on all the above devices.
-[MTLDebugRenderCommandEncoder validateCommonDrawErrors:]:5252: failed assertion `Draw Errors Validation
Fragment Function(blendFragmentShader): Shader reads texture (prevColor[1]) whose usage (0x04) doesn't specify MTLTextureUsageShaderRead (0x01)
The error occurs in the drawBox:rendererEncoder at the code below when boxIndex = 1
for(MTKSubmesh *submesh in _meshes[boxIndex].submeshes)
{
[renderEncoder drawIndexedPrimitives:submesh.primitiveType
indexCount:submesh.indexCount
indexType:submesh.indexType
indexBuffer:submesh.indexBuffer.buffer
indexBufferOffset:submesh.indexBuffer.offset];
}
I'm using a Macbook pro, macos 12.2 and Xcode 13.3.
I hoped that this example would be an easy way to get experience with metal, but I've not got the experience I need to interpret what I should change to address the "doesn't specify MTLTextureUsageShaderRead" error.
Any help is greatly appreciated.
Post not yet marked as solved
Good afternoon! I just started developing for the iOS so I apologize in advance if this is a stupid question. I did research on this but couldn't find any clear answer.
What's happening is, I'm trying to submit my app to the store. However, according to the App Reviewers it crashes on launch in a 15.5. Problem is, I don't have any physical device and I can't download a 15.5 emulator for some reason. I updated all my emulators on Xcode and looked around for a 15.5 emulator but can't get it working. Could someone please help me?
Thanks in advance!
Post not yet marked as solved
I stumbled upon a really peculiar issue while running my application that features both a functionality to create image and video attachments from the user's photos and videos using the PHPicker* API and previewing said attachments using the QuickLook API:
Whenever I tap to open a photo (e.g. a JPEG) or a video (e.g. a MP4) using the QuickLook API, on an iPhone 13 15.4 simulator device on Xcode 13.3 on a M1 Macbook Pro host machine, I get a crash with the following call stack:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[2]'
terminating with uncaught exception of type NSException
*** First throw call stack:
(
0 CoreFoundation 0x000000011003bd44 __exceptionPreprocess + 242
1 libobjc.A.dylib 0x000000010cd1ea65 objc_exception_throw + 48
2 CoreFoundation 0x00000001100bcf47 _CFThrowFormattedException + 200
3 CoreFoundation 0x00000001100c7417 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:].cold.5 + 0
4 CoreFoundation 0x00000001100aa827 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:] + 243
5 CoreFoundation 0x000000011003a998 +[NSDictionary dictionaryWithObjects:forKeys:count:] + 49
6 QuickLook 0x0000000110f37636 __49+[QLItem(PreviewInfo) contentTypesToPreviewTypes]_block_invoke + 484
7 libdispatch.dylib 0x000000011b0f5a5b _dispatch_client_callout + 8
8 libdispatch.dylib 0x000000011b0f6f24 _dispatch_once_callout + 66
9 QuickLook 0x0000000110f37450 +[QLItem(PreviewInfo) contentTypesToPreviewTypes] + 46
10 QuickLook 0x0000000110f37d91 -[QLItem(PreviewInfo) _uncachedPreviewItemTypeForContentType:] + 117
11 QuickLook 0x0000000110f382fe -[QLItem(PreviewInfo) _previewItemTypeForType:] + 150
12 QuickLook 0x0000000110f38104 -[QLItem(PreviewInfo) _getPreviewItemType] + 61
13 QuickLook 0x0000000110fbf4d2 -[QLItem previewItemType] + 59
14 QuickLook 0x0000000110f6ed15 +[QLItemFetcherFactory fetcherForPreviewItem:] + 90
15 QuickLook 0x0000000110fbeb9b -[QLItem fetcher] + 44
16 QuickLook 0x0000000110f22880 -[QLPreviewController previewItemAtIndex:withCompletionHandler:] + 153
17 QuickLook 0x0000000110f587a8 __63-[QLPreviewItemStore previewItemAtIndex:withCompletionHandler:]_block_invoke + 262
18 QuickLook 0x0000000110f8c621 QLRunInMainThread + 51
19 QuickLook 0x0000000110f58673 -[QLPreviewItemStore previewItemAtIndex:withCompletionHandler:] + 181
20 QuickLook 0x0000000110f1c89f -[QLPreviewController internalCurrentPreviewItem] + 222
21 QuickLook 0x0000000110f9c140 -[QLPreviewController(Overlay) _actionButton] + 344
22 QuickLook 0x0000000110f9c81c -[QLPreviewController(Overlay) _toolBarButtonsWithTraitCollection:] + 1147
23 QuickLook 0x0000000110f9a2ff -[QLPreviewController(Overlay) _updateOverlayButtonsIfNeededWithTraitCollection:animated:updatedToolbarButtons:] + 129
24 QuickLook 0x0000000110f999a2 -[QLPreviewController(Overlay) updateOverlayAnimated:animatedButtons:forceRefresh:withTraitCollection:] + 152
25 QuickLook 0x0000000110f1c707 -[QLPreviewController _setCurrentPreviewItemIndex:updatePreview:animated:] + 230
26 QuickLook 0x0000000110f22416 -[QLPreviewController reloadData] + 418
27 <MYAPP> 0x0000000102a03293 __53-[MyPreviewController downloadAttachment]_block_invoke_2 + 611
28 libdispatch.dylib 0x000000011b0f4816 _dispatch_call_block_and_release + 12
29 libdispatch.dylib 0x000000011b0f5a5b _dispatch_client_callout + 8
30 libdispatch.dylib 0x000000011b104325 _dispatch_main_queue_drain + 1169
31 libdispatch.dylib 0x000000011b103e86 _dispatch_main_queue_callback_4CF + 31
32 CoreFoundation 0x000000010ffa8261 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
33 CoreFoundation 0x000000010ffa2a56 __CFRunLoopRun + 2761
34 CoreFoundation 0x000000010ffa1a90 CFRunLoopRunSpecific + 562
35 GraphicsServices 0x00000001209c8c8e GSEventRunModal + 139
36 UIKitCore 0x000000013499c90e -[UIApplication _run] + 928
37 UIKitCore 0x00000001349a1569 UIApplicationMain + 101
38 <MYAPP> 0x0000000102970669 main + 233
39 dyld 0x000000010c6c4f21 start_sim + 10
40 ??? 0x00000002041ad51e 0x0 + 8658801950
41 ??? 0x0000000000000003 0x0 + 3
I tried also selecting a photo or a video using the PHPicker* APIs, and although I get back the file, if I try to query the UTType from the file extension using the [UTType typeWithFilenameExtension:] method, I get back a nil result if the extension passed is either a "jpeg" or a "mp4".
The above do not happen if I run the same simulator (iPhone 13 15.4 / Xcode 13.3) on an Intel Macbook Pro host machine, or on a real device.
Any ideas?
Post not yet marked as solved
We’ve run into a strange issue here. We are running an iOS 13 simulator device on Monterey (x86_64) and an app on said device causes a crash (this is expected). However, when the crash reporter attempts to write out the crash report, it crashes. Here is an excerpt from the translated crash report:
Process: ReportCrash [88409]
Path: /System/Library/CoreServices/ReportCrash
Identifier: ReportCrash
Version: ???
Code Type: X86-64 (Native)
Parent Process: launchd [1]
User ID: 503
Date/Time: 2022-06-01 15:45:32.9876 -0400
OS Version: macOS 12.3.1 (21E258)
Report Version: 12
Bridge OS Version: 6.4 (19P4243)
Anonymous UUID: 9D02B4AF-C468-6AD7-78E4-48395612A5A9
Time Awake Since Boot: 450000 seconds
System Integrity Protection: enabled
Crashed Thread: 3
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000001206c2008
Exception Codes: 0x0000000000000001, 0x00000001206c2008
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: Namespace SIGNAL, Code 11 Segmentation fault: 11
Terminating Process: exc handler [88409]
VM Region Info: 0x1206c2008 is not in any region. Bytes after previous region: 289083401 Bytes before following region: 123140679340024
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
VM_ALLOCATE (reserved) 10f30e000-10f311000 [ 12K] r--/r-- SM=NUL ...(unallocated)
---> GAP OF 0x6ffefdae2000 BYTES
Stack Guard 70000cdf3000-70000cdf4000 [ 4K] ---/rwx SM=NUL
Application Specific Information:
Pid 91244 'SnoopLlama' CORPSE: Extracting
Completed 8, Recent: Pid 90229 'SnoopLlama' CORPSE
As best we can tell, this only happens on iOS 13 simulator devices (we’ve observed this behavior on iOS 13.4, 13.5, and 13.7) and Monterey x86_64. (It does not happen on iOS 14+, nor on Monterey arm64.) We’ve observed it on macOS 12.3.1 and 12.4, all with Xcode 13.3.1.
Has anybody run into this before?
Post not yet marked as solved
I am having problems on Xcode13.3.1, Monterey 12.2.1, Apple M1 Max.
Sending an UpdateApplicationContext update from a paired iPhone simulator is not received on the paired Apple Watch Simulator in the didRecieveApplicationContext. However, sendMessage from the apple watch simulator does update the iphone simulator app properly. It is however, not possible to send anything from the paired iPhone simulator to the paired Apple Watch Simulator.
When working with actual devices everything works properly with WatchConnectivity with passing information back and forth via updateapplicationcontext and sendmessage calls.
Can anyone confirm this is a bug or if there is something wrong with my setup?
Post not yet marked as solved
Hi all,My simulator keyboard is freezing has lag when inputing text into any uitextfield. This isn't just on the apps i'm developing but also the built in apps on simulator (messages,settings anywhere you type text).Problem Detail:Click in any uitextfield the keyboard opens normally. Type using the onscreen keyboard or hardware keyboard first character appears normally however anything typed after this first character doesn't appear for 10-20 secs (note that the app become unresponsive in this time).Process: kbd [2988]
Path: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/TextInput/kbd
Identifier: kbd
Version: 1913.2.15
Code Type: X86 (Native)
Parent Process: launchd_sim [2765]
Responsible: kbd [2988]
User ID: 501
Date/Time: 2017-01-06 11:45:01.839 +1300
OS Version: Mac OS X 10.11.6 (15G1212)
Report Version: 11
Anonymous UUID:
Time Awake Since Boot: 83000 seconds
System Integrity Protection: enabled
Crashed Thread: 8 Dispatch queue: com.apple.TextInput.language-model.loading
Exception Type: EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes: 0x0000000000000001, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Application Specific Information:
CoreSimulator 338.16 - Device: iPhone 5 - Runtime: iOS 10.2 (14C89) - DeviceType: iPhone 5any help is appreciated
Post not yet marked as solved
iCloud Drive doesn't appear to work at all for me in the iOS 11 Simulator. As near as I can tell, it should. I've signed into my account in settings->Apple ID, iCloud, iTunes & App Store (and signed out/in several times). I've gone into iCloud settings and turned on/off/on/etc iCloud Drive and same for the app I'm developing. I've tried it on two different macs with the same results.When I use the Files app on the Simulator, it shows 0 items, 1.47 TB available. The 0 is wron but the 1.47 TB available is right so it's getting some of the info from iCloud Drive. Most importantly, when I run my app and attempt to use files in my app's iCloud Drive container, the files are older than they should be. When I update the files on another platform, they don't get updated in the simulator. When I update then from my app in the Simulator, the changes never show up on another platform.Questions:- Should iCloud Drive work in the Simulator?- If so, should the Files app show the files I have in my iCloud Drive in the Simulator? Thanks for any help and suggestions.Ray
Post not yet marked as solved
I have a very simple program, which works python kivy.
In that program I read and write json files.
Everything is fine with every simulator in Xcode Version 13.4.
However when I connect my Phone it can read the json file but can't write in it.
It says;
`File "/Users/batuhan/programs/kivy-ios/2800-ios/YourApp/main.py", line 429, in secom
PermissionError: [Errno 1] Operation not permitted: '/private/var/containers/Bundle/Application/C2508051-03DA-40EC-8587-A40D8B922055/2800.app/YourApp/savelist1.json'
2022-05-19 20:14:09.322995+0300 2800[3486:1776834] Application quit abnormally!
2022-05-19 20:14:09.416628+0300 2800[3486:1776834] Leaving`
As I understand so far it is all about build settings in Xcode.
Because as MacBook user I can write in that json file in simulator and everything works perfect.
I need to give permission to write json file for every user, staff or everyone.
I am just a beginner in Xcode, I think it is related with those settings;
The json file is in same directory with main.py
Hello everyone!This problem first appeared when I updated Xcode 6.1 to version 6.2.At that point, the system let me keep 6.1 and install 6.2 additionally, which I decided to go for.While using Xcode 6.2, though, I wasn't able to select any iOS simulators to run my apps on.They still appeared in Window -> Devices, though, and I was still able to open the iOS Simulator App manually and choose from the devices.I just couldn't transfer any more apps.Well, I thought there must have been a bug with the installation. So I deleted both, Xcode 6.1 and 6.2 and installed 6.2 again.But this didn't help. I decided to wait for updates that may fix this problem, but even upgrading to 6.3 didn't help, nor did upgrading to 6.4.Does anyone know how to fix this? Have I somehow messed with system folders when I accepted to keep 6.1 while installing 6.2?Many thanks in advance,Greetings,Shu
Post not yet marked as solved
Whenever I run my simulator, it shows up black with white at the top, even though that is not what my storyboard is designed to do.
Post not yet marked as solved
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?