Post not yet marked as solved
When embedding a framework in an iOS application I noticed some differing behavior when running on an actual device and simulator which I couldn't find an explanation for anywhere in the documentation. The embedded frameworks are loaded from outside (adjacent) to the app package when running on simulator whereas they are loaded from within the app package, within the Frameworks directory when running on an actual device.
Here's a link to an example project which logs the path at which the dylib within the framework is loaded: https://github.com/R4N/simulatorLoadFrameworkExample
The sample outputs are as follows:
On simulator:
/Users/username/Library/Developer/Xcode/DerivedData/simulatorLoadFrameworkExample-gmxyfcrvpmdfgqepjbbysebvysmh/Build/Products/Debug-iphonesimulator/libsimple.dylib
On device:
/private/var/containers/Bundle/Application/9D22C144-848A-4E40-B5B3-707B1CFD3151/simulatorLoadFrameworkExample.app/Frameworks/libsimple.dylib
Is this the correct/expected behavior and if so is there any documentation which references this?
These are the documentation pages which I've reviewed so far trying to find an answer/explanation:
https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPFrameworks/Concepts/CreationGuidelines.html
https://developer.apple.com/library/archive/documentation/CoreFoundation/Conceptual/CFBundles/BundleTypes/BundleTypes.html#//apple_ref/doc/uid/10000123i-CH101-SW1
https://developer.apple.com/library/archive/technotes/tn2435/_index.html
Post not yet marked as solved
Every time I work with Xcode Simulator or SwiftUI's Xcode Previews my Mac freezes and reboots. I get below report after restart:
panic(cpu 1 caller 0xffffff7fae0e7505): "Submission on work queue 33 failed due to insufficient space!\n" @IGGuC.cpp:2899
Panicked task 0xffffff95219449c0: 4 threads: pid 1358: SimMetalHost
Backtrace (CPU 1), panicked thread: 0xffffff9520c88540, Frame : Return Address
0xffffffe5a9882de0 : 0xffffff8015a81c8d
0xffffffe5a9882e30 : 0xffffff8015be1596
0xffffffe5a9882e70 : 0xffffff8015bd0963
0xffffffe5a9882ec0 : 0xffffff8015a21a70
0xffffffe5a9882ee0 : 0xffffff8015a8205d
0xffffffe5a9883000 : 0xffffff8015a81816
0xffffffe5a9883060 : 0xffffff8016315163
0xffffffe5a9883150 : 0xffffff7fae0e7505
0xffffffe5a9883160 : 0xffffff7fae05ecf7
0xffffffe5a9883250 : 0xffffff7fae084844
0xffffffe5a9883280 : 0xffffff7fae08f6e5
0xffffffe5a98832f0 : 0xffffff7fae9d75b7
0xffffffe5a9883330 : 0xffffff7fae06c73d
0xffffffe5a9883350 : 0xffffff7fae06cb5d
0xffffffe5a98833c0 : 0xffffff7fae09b89e
0xffffffe5a98835e0 : 0xffffff7fae070ed4
0xffffffe5a9883620 : 0xffffff7fae9ed118
0xffffffe5a9883650 : 0xffffff7fae070b00
0xffffffe5a9883690 : 0xffffff7fae9ed2a7
0xffffffe5a98836d0 : 0xffffff7fae9ed996
0xffffffe5a9883970 : 0xffffff7fae0714f4
0xffffffe5a98839a0 : 0xffffff7fae9ee8f1
0xffffffe5a9883a30 : 0xffffff7fae9ec94b
0xffffffe5a9883a90 : 0xffffff7fae9ec741
0xffffffe5a9883ae0 : 0xffffff7fae9eb81d
0xffffffe5a9883b20 : 0xffffff7fae071137
0xffffffe5a9883b60 : 0xffffff8016283a8c
0xffffffe5a9883cc0 : 0xffffff8015b872e6
0xffffffe5a9883dd0 : 0xffffff8015a5c9ab
0xffffffe5a9883e60 : 0xffffff8015a731f9
0xffffffe5a9883ef0 : 0xffffff8015bb35aa
0xffffffe5a9883fa0 : 0xffffff8015a22256
Kernel Extensions in backtrace:
com.apple.iokit.IOAcceleratorFamily2(462.8)[F0D1B5AF-356A-3F86-8829-8F00218602CB]@0xffffff7fae9a6000->0xffffff7faea10fff
dependency: com.apple.driver.AppleMobileFileIntegrity(1.0.5)[2B96E04B-E2A5-3296-AF14-6A766880A652]@0xffffff80171a1000->0xffffff80171c2fff
dependency: com.apple.iokit.IOGraphicsFamily(597)[BBEE13AB-2291-37D9-AAE4-9E565E8950A5]@0xffffff7faeb3f000->0xffffff7faeb6dfff
dependency: com.apple.iokit.IOPCIFamily(2.9)[654ABF9D-EB24-3B64-AB1C-EC2AC8357192]@0xffffff8018624000->0xffffff801864ffff
dependency: com.apple.iokit.IOReportFamily(47)[5578189C-7C1D-3158-B357-F8D6A216DCE1]@0xffffff8018661000->0xffffff8018663fff
dependency: com.apple.iokit.IOSurface(302.14)[F0BF8EFA-AA35-37B5-B3AB-A8BCF5E62024]@0xffffff8018794000->0xffffff80187b0fff
com.apple.driver.AppleIntelKBLGraphics(18.0.7)[1A72DE92-F799-3EFF-8AD4-B662C53C36AD]@0xffffff7fae059000->0xffffff7fae117fff
dependency: com.apple.iokit.IOAcceleratorFamily2(462.8)[F0D1B5AF-356A-3F86-8829-8F00218602CB]@0xffffff7fae9a6000->0xffffff7faea10fff
dependency: com.apple.iokit.IOGraphicsFamily(597)[BBEE13AB-2291-37D9-AAE4-9E565E8950A5]@0xffffff7faeb3f000->0xffffff7faeb6dfff
dependency: com.apple.iokit.IOPCIFamily(2.9)[654ABF9D-EB24-3B64-AB1C-EC2AC8357192]@0xffffff8018624000->0xffffff801864ffff
dependency: com.apple.iokit.IOSurface(302.14)[F0BF8EFA-AA35-37B5-B3AB-A8BCF5E62024]@0xffffff8018794000->0xffffff80187b0fff
Process name corresponding to current thread (0xffffff9520c88540): SimMetalHost (iPhone 12: default
Boot args: chunklist-security-epoch=0 -chunklist-no-rev2-dev chunklist-security-epoch=0 -chunklist-no-rev2-dev
Mac OS version:
21F79
Kernel version:
Darwin Kernel Version 21.5.0: Tue Apr 26 21:08:22 PDT 2022; root:xnu-8020.121.3~4/RELEASE_X86_64
Kernel UUID: 3C587984-4004-3C76-8ADF-997822977184
KernelCache slide: 0x0000000015800000
KernelCache base: 0xffffff8015a00000
Kernel slide: 0x0000000015810000
Kernel text base: 0xffffff8015a10000
__HIB text base: 0xffffff8015900000
System model name: Macmini8,1 (Mac-7BA5B2DFE22DDD8C)
System shutdown begun: NO
Hibernation exit count: 0
System uptime in nanoseconds: 2335401059040
Last Sleep: absolute base_tsc base_nano
Uptime : 0x0000021fc0c0295e
Sleep : 0x000000c429fd13d9 0x00000000bae420b6 0x000000a6581a552b
Wake : 0x000000c435bb1b42 0x00000000bae11627 0x000000c4332c18c2
Compressor Info: 24% of compressed pages limit (OK) and 12% of segments limit (OK) with 5 swapfiles and OK swap space
Zone info:
Zone map: 0xffffff805595c000 - 0xffffffa05595c000
. PGZ : 0xffffff805595c000 - 0xffffff805695d000
. VM : 0xffffff805695d000 - 0xffffff85233c3000
. RO : 0xffffff85233c3000 - 0xffffff86bcc8f000
. GEN0 : 0xffffff86bcc8f000 - 0xffffff8b896f5000
. GEN1 : 0xffffff8b896f5000 - 0xffffff905615b000
. GEN2 : 0xffffff905615b000 - 0xffffff9522bc1000
. GEN3 : 0xffffff9522bc1000 - 0xffffff99ef628000
. DATA : 0xffffff99ef628000 - 0xffffffa05595c000
Metadata: 0xffffffa079aee000 - 0xffffffa099aee000
Bitmaps : 0xffffffa099aee000 - 0xffffffa09caee000
last started kext at 1655076280961: >usb.cdc.acm 5.0.0 (addr 0xffffff7fae81d000, size 12288)
last stopped kext at 1766102575761: >usb.serial 6.0.0 (addr 0xffffff7fae893000, size 20480)
loaded kexts:
AGPM 129
!APlatformEnabler 2.7.0d0
X86PlatformShim 1.0.0
@filesystems.autofs 3.0
!AGFXHDA 140.3
!AUpstreamUserClient 3.6.9
!AMCCSControl 1.16
!ABridgeAudio!C 240.6
!AGraphicsDevicePolicy 6.5.7
BridgeAudioCommunication 240.6
!AAVEBridge 6.1
!A!IKBLGraphics 18.0.7
@AGDCPluginDisplayMetrics 6.5.7
pmtelemetry 1
!A!ICFLGraphicsFramebuffer 18.0.7
|IOUserEthernet 1.0.1
usb.!UUserHCI 1
!A!IPCHPMC 2.0.1
!AHV 1
!ADiskImages2 126.100.13
!A!ISlowAdaptiveClocking 4.0.0
!AThunderboltIP 4.0.3
BCMWLANFirmware4387.Hashstore 1
BCMWLANFirmware4378.Hashstore 1
BCMWLANFirmware4377.Hashstore 1
BCMWLANFirmware4364.Hashstore 1
BCMWLANFirmware4355.Hashstore 1
!AFileSystemDriver 3.0.1
@filesystems.tmpfs 1
@filesystems.lifs 1
@filesystems.hfs.kext 583.100.10
@BootCache 40
@!AFSCompression.!AFSCompressionTypeZlib 1.0.0
@!AFSCompression.!AFSCompressionTypeDataless 1.0.0d1
@filesystems.apfs 1934.121.2
!ABCMWLANBusInterfacePCIeMac 1
!ASDXC 3.2.1
|!ABCM5701Ethernet 11.0.0
@private.KextAudit 1.0
!AACPIButtons 6.1
!ASMBIOS 2.1
!AACPIEC 6.1
!AAPIC 1.7
@!ASystemPolicy 2.0.0
@nke.applicationfirewall 402
|IOKitRegistryCompatibility 1
|EndpointSecurity 1
@Dont_Steal_Mac_OS_X 7.0.0
@kec.!AEncryptedArchive 1
!UMergeNub 900.4.2
IO!BHIDDriver 9.0.0
driverkit.serial 6.0.0
@kext.triggers 1.0
!ASMBus!C 1.0.18d1
!AAudioClockLibs 140.1
!A!ILpssUARTv1 3.0.60
!A!ILpssUARTCommon 3.0.60
!AOnboardSerial 1.0
usb.IOUSBHostHIDDevice 1.2
|IOAudio!F 340.2
@vecLib.kext 1.2.0
!AGraphicsControl 6.5.7
|IONDRVSupport 597
X86PlatformPlugin 1.0.0
..............
Below is my system configuration:
Model Name: Mac mini
Model Identifier: Macmini8,1
Processor Name: 6-Core Intel Core i5
Processor Speed: 3 GHz
Number of Processors: 1
Total Number of Cores: 6
Memory: 8 GB
System Version: macOS 12.4 (21F79)
Any help would be appreciated, thanks!
Post not yet marked as solved
Testing my app in an iOS 15.5 simulator with Xcode 14 beta, it crashed hard, locking up my entire laptop. After restarting, it seems that the iOS 15.5 simulator runtime disappeared, and I'm now getting the following error:
The com.apple.CoreSimulator.SimRuntime.iOS-15-5 simulator runtime is not available.
runtime profile not found
Download the com.apple.CoreSimulator.SimRuntime.iOS-15-5 simulator runtime from the Components section in Xcode's Preferences.
Unfortunately, Xcode seems to think that I already have the runtime, and no longer gives me the option to download it.
Post not yet marked as solved
Running an XCode 12, iPhone 12, iOS 14.3 emulator and receiving this error:
Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)" UserInfo={_LSFunction=_LSSchemaConfigureForStore, ExpectedSimulatorHash={length = 32, bytes = 0x35effaa3 2bab3fa8 68f8c96b cd17d15e ... 9bf8f6b7 fd486754 }, _LSLine=405, WrongSimulatorHash={length = 32, bytes = 0xe14e0f7b 39a9580e 8e4762c4 846107dc ... 21618def 3c69a5ae }}
This is preventing us from using 'axios' in order to sign into our application. Is there a solution to this issue? What are the steps to remedy?
Post not yet marked as solved
When building the app the simulator does not launch as it previously did, using the latest version on an intel MacBook Pro 2020. I have factory reset the Mac several times and reinstalled Xcode numbers times and have reverted back to previous version which has not worked.
Not had any assistance from this community previously can anyone assist me with this now?
Post not yet marked as solved
Hello everyone,
MacBook Air M1 2020:
For two months I can not use the simulator because I get an error after the build:
I tried launching from different versions IOS (14.3 / 14.0), but every time I open the app from simulator I get this error:
2021-02-05 14:30:25.825935+0100 MyApp[56865:1895569] [db] Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)" UserInfo={_LSFunction=_LSSchemaConfigureForStore, ExpectedSimulatorHash={length = 32, bytes = 0x64ffa485 dd556ca7 e49bc38c da04e080 ... e817a119 c3dad3ce }, _LSLine=405, WrongSimulatorHash={length = 32, bytes = 0xf74b7cf2 146c7320 f164d932 556def6c ... e5c99aa7 f132eec7 }}
This error is repeated 6-8 times per application opening. After opening, I see a white screen of the application.
I tried to run a project on MacBook with processor Intel, and this problem does not arise.
I also tried to download the Xcode 12.5 beta but nothing changed.
Does anyone have a solution to this problem?
ASAP,
Thanks
Post not yet marked as solved
In my app I had created a initial vc, but I didn't really liked the design I've done so I changed it to a new one. Now the simulator is showing me the old design for a little while, and then it goes to the proper new one. How do I make the old one disappear? (I deleted the file of the old one )
Post not yet marked as solved
We have enterprise proxy server which needs authentication. This setup works with our domain certs trusted and installed on Simulator prior to iOS 15.
Starting with Xcode 13 and 13.1, we see the app crashes on launch with below logs and backtrace.
Attaching crash traces as well.
Wealth_2021-12-01-143512_MAC1353916.crash
This works fine on device and only crashing on simulator
2021-12-01 14:42:39.690784-0500 ***[10849:4420774] [] nw_http_connect_send_auth_request_block_invoke Proxy authentication failed with error -1001, cancelling connection
2021-12-01 14:42:39.724505-0500 ***[10849:4420774] [] nw_http_connect_send_auth_request_block_invoke Proxy authentication failed with error -1001, cancelling connection
2021-12-01 14:42:39.740723-0500 ***[10849:4420774] [] nw_http_connect_send_auth_request_block_invoke Proxy authentication failed with error -1001, cancelling connection
(lldb) bt
thread #31, queue = 'com.apple.network.connections', stop reason = EXC_BAD_ACCESS (code=EXC_I386_GPFLT)
frame #0: 0x00007fff22803c88 libnetwork.dylib__nw_http_connect_restart_after_disconnect_block_invoke + 280 frame #1: 0x000000011453ca28 libdispatch.dylib_dispatch_call_block_and_release + 12
frame #2: 0x000000011453dc0c libdispatch.dylib_dispatch_client_callout + 8 frame #3: 0x0000000114546af9 libdispatch.dylib_dispatch_workloop_invoke + 2849
frame #4: 0x000000011455159b libdispatch.dylib_dispatch_workloop_worker_thread + 900 frame #5: 0x00007fff6bfeb45d libsystem_pthread.dylib_pthread_wqthread + 314
frame #6: 0x00007fff6bfea42f libsystem_pthread.dylib`start_wqthread + 15
Post marked as Apple Recommended
Hi,
can anybody confirm that there are a problem with the image picker on Xcode 12.4 / Sim 12.4 on the new apple silicon MacBook m1?
Best,
Dominik
Post not yet marked as solved
I signed out of iCloud in the iPhone 8 Simulator, and it has shown the screen saying "Removing iCloud data..." showing that it's working for a few hours now. When it did this before, I shut down the Simulator and when I opened the Simulator again, it shows that it never logged out of iCloud.
Post not yet marked as solved
I'm attempting to authorize family controls as .individual in the latest Xcode 14 beta (14A5228q).
do {
try await AuthorizationCenter.shared.requestAuthorization(for: .individual)
} catch {
print(error.localizedDescription)
dump(error)
}
Running this on the iPhone 13 Simulator (iOS 16), it throws the following error:
The operation couldn’t be completed. (FamilyControls.FamilyControlsError error 3.)
- Error Domain=FamilyControls.FamilyControlsError Code=3 "(null)" #0
- super: NSObject
I have a dedicated App ID and have enabled the "Family Controls" capability.
An Apple Systems Engineer suggested in this thread that "Requesting FamilyControls authorization on Simulator is supported by the ScreenTime API", although they don't say whether it actually works or not.
The rest of the thread seems to suggest people are also having issues when running on a physical device so I'm reluctant to install the iOS 16 Beta as I use my phone daily for work projects.
Is this FamilyControls authorization supposed to work in Simulator and are there any special considerations when authorizing as .individual?
Post not yet marked as solved
I've been having a problem for a few hours now and I can't figure out where it's coming from...
The error that appears at the end of my Xcode build when launching the application on the simulator:
Failed to load Info.plist from bundle at path Library/Developer/CoreSimulator/Devices/04F64287-.../data/Library/Caches/PATH ABOUT MY APP HERE/Frameworks/RCTVibration.framework;
Couldn't stat Library/Developer/CoreSimulator/Devices/04F64287-.../data/Library/Caches/PATH ABOUT MY APP HERE/RCTVibration.framework/Info.plist: No such file or directory
I have tried several times:
Pod deintegrate && pod install
Delete node_modules
Clean build folder
Restart my computer
Reclone my project
Erase my simulators multiple times
Erase Derived Data from Xcode
XCode cleanly with the temporary/cache files and reinstalled taking care to delete all the data from the simulators before compiling
Here is my Podfile:
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
platform :ios, '11.0'
target 'X' do
config = use_native_modules!
use_frameworks!
# Convert all permission pods into static libraries
pre_install do |installer|
Pod::Installer::Xcode::TargetValidator.send(:define_method, :verify_no_static_framework_transitive_dependencies) {}
installer.pod_targets.each do |pod|
if pod.name.eql?('RNPermissions') || pod.name.start_with?('Permission-') || pod.name.eql?('RNScreens')
def pod.build_type;
Pod::BuildType.static_library # >= 1.9
end
end
end
end
pod 'X'
pod 'Firebase/Crashlytics'
# Recommended: Add the Firebase pod for Google Analytics
pod 'Firebase/Analytics'
use_react_native!(
:path => config[:reactNativePath]
)
rn_maps_path = '../node_modules/react-native-maps'
# pod 'react-native-google-maps', :path => rn_maps_path
pod 'GoogleMaps'
pod 'Google-Maps-iOS-Utils'
permissions_path = '../node_modules/react-native-permissions/ios'
pod 'Permission-Notifications', :path => "#{permissions_path}/Notifications"
pod 'Permission-LocationWhenInUse', :path => "#{permissions_path}/LocationWhenInUse"
post_install do |installer|
react_native_post_install(installer)
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES'
end
if (target.name&.eql?('FBReactNativeSpec'))
target.build_phases.each do |build_phase|
if (build_phase.respond_to?(:name) && build_phase.name.eql?('[CP-User] Generate Specs'))
target.build_phases.move(build_phase, 0)
end
end
end
end
end
end
None of these manipulations worked so I'm interested if you have any ideas
Thanks you!
Post not yet marked as solved
Is it possible to turn on Stage Manager on Xcode's iPadOS simulator?
Post not yet marked as solved
Getting error while making a call from ios simulator ..
This is happening only on ios simulator but same connection works fine from the mobile.
Event when I open https://google.com on safari on ios simulator, it throws This connection is not private
2022-06-18 21:41:57.534885-0400 EventTrackerDemo[38468:3017232] Connection 10: default TLS Trust evaluation failed(-9807)
2022-06-18 21:41:57.534977-0400 EventTrackerDemo[38468:3017232] Connection 10: TLS Trust encountered error 3:-9807
2022-06-18 21:41:57.535056-0400 EventTrackerDemo[38468:3017232] Connection 10: encountered error(3:-9807)
2022-06-18 21:41:57.535561-0400 EventTrackerDemo[38468:3017232] Task .<4> HTTP load failed, 0/0 bytes (error code: -1202 [3:-9807])
2022-06-18 21:41:57.537985-0400 EventTrackerDemo[38468:3016915] Task .<4> finished with error [-1202] Error Domain=NSURLErrorDomain Code=-1202 "The certificate for this server is invalid. You might be connecting to a server that is pretending to be “.com, NSErrorPeerCertificateChainKey=(
"<cert(0x1500c1400) s: xxxxxxxxxx.xxxxx.com i: Zscaler Intermediate Root CA (zscalertwo.net) (t) >",
"<cert(0x1500c0c00) s: Zscaler Intermediate Root CA (zscalertwo.net) (t) i: Zscaler Intermediate Root CA (zscalertwo.net)>",
"<cert(0x1500bfa00) s: Zscaler Intermediate Root CA (zscalertwo.net) i: Zscaler Root CA>"
), NSErrorClientCertificateStateKey=0, NSErrorFailingURLKey=https://.com/, NSErrorFailingURLStringKey=https://*****.com/, NSUnderlyingError=0x60000265d200 {Error Domain=kCFErrorDomainCFNetwork Code=-1202 "(null)" UserInfo={_kCFStreamPropertySSLClientCertificateState=0, kCFStreamPropertySSLPeerTrust=<SecTrustRef: 0x6000019ac000>, _kCFNetworkCFStreamSSLErrorOriginalValue=-9807, _kCFStreamErrorDomainKey=3, _kCFStreamErrorCodeKey=-9807, kCFStreamPropertySSLPeerCertificates=(
"<cert(0x1500c1400) s: .com i: Zscaler Intermediate Root CA (zscalertwo.net) (t) >",
"<cert(0x1500c0c00) s: Zscaler Intermediate Root CA (zscalertwo.net) (t) i: Zscaler Intermediate Root CA (zscalertwo.net)>",
"<cert(0x1500bfa00) s: Zscaler Intermediate Root CA (zscalertwo.net) i: Zscaler Root CA>"
)}}, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask .<4>"
), _kCFStreamErrorCodeKey=-9807, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask .<4>, NSURLErrorFailingURLPeerTrustErrorKey=<SecTrustRef: 0x6000019ac000>, NSLocalizedDescription=The certificate for this server is invalid. You might be connecting to a server that is pretending to be “.****.com” which could put your confidential information at risk.}
Post not yet marked as solved
I search places with the MKLocalSearchCompleter and refine the results when the tableView cell is selected. When a MKLocalSearchCompletion is selected and MKLocalSearch.Request() is started, I get these Errors (example selects Los Angeles):
According to my research this is a very rare problem?! [SearchAttribution] No matching attribution source found for org.volunteermatch ... (+4 other domains)
Error loading attribution info for identifier org.volunteermatch from geod: Error Domain=GEOErrorDomain Code=-8 "No matching attribution source found for org.volunteermatch" UserInfo={NSDebugDescription=No matching attribution source found for org.volunteermatch} ... (+4 other domains)
These are the instance variables in a TableViewController:
var searchCompleter = MKLocalSearchCompleter()
var searchResults = [MKLocalSearchCompletion]()
This code is running everytime the search term is changed:
searchCompleter.queryFragment = text
searchCompleter.resultTypes = .address
searchCompleter.region = region
In tableView … didSelectRowAt… this code is executed:
let selectedItem = searchResults[indexPath.row]
let searchRequest = MKLocalSearch.Request()
searchRequest.naturalLanguageQuery = selectedItem.title
searchRequest.resultTypes = .address
let search = MKLocalSearch(request: searchRequest)
search.start { (response, error) in
guard let coordinate = response?.mapItems[0].placemark.coordinate else {
return
}
// send to mainVC
self.delegate?.userSelectedPlace(coordinate: coordinate)
}
Post not yet marked as solved
I can't paste anything into my simulator since switching to an M1 MacMini. I've tried ticking and unticking "automatically sync clipboard". I've also tried using the "send clipboard" option manually, but no success.
I can seem to paste into safari on the simulator, but not any app I create in Xcode. I've tried multiple and even creating a new one fresh.
I get the below snippet in the console complaining its unable to access some file. Looks like its an Xcode / M1 bug.
I'm not running via rosetta.
Does anyone know how to fix this, its become a real blocker for me testing my app
2021-06-11 12:00:28.656521+0100 camlKit-Example[3736:123707] [db] Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)" UserInfo={_LSFunction=_LSSchemaConfigureForStore, ExpectedSimulatorHash={length = 32, bytes = 0x15dde658 ed2a1267 ab2496d7 34f186ad ... ec431c65 02d68f35 }, _LSLine=409, WrongSimulatorHash={length = 32, bytes = 0xaf25dda9 e45baa35 610eaabd 5bc09901 ... 9cbe61f3 81d7b9d9 }}
2021-06-11 12:00:28.656878+0100 camlKit-Example[3736:123707] [db] _LSSchemaConfigureForStore failed with error Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)" UserInfo={_LSFunction=_LSSchemaConfigureForStore, ExpectedSimulatorHash={length = 32, bytes = 0x15dde658 ed2a1267 ab2496d7 34f186ad ... ec431c65 02d68f35 }, _LSLine=409, WrongSimulatorHash={length = 32, bytes = 0xaf25dda9 e45baa35 610eaabd 5bc09901 ... 9cbe61f3 81d7b9d9 }}
2021-06-11 12:00:28.656957+0100 camlKit-Example[3736:123707] [db] Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)" UserInfo={_LSFunction=_LSSchemaConfigureForStore, ExpectedSimulatorHash={length = 32, bytes = 0x15dde658 ed2a1267 ab2496d7 34f186ad ... ec431c65 02d68f35 }, _LSLine=409, WrongSimulatorHash={length = 32, bytes = 0xaf25dda9 e45baa35 610eaabd 5bc09901 ... 9cbe61f3 81d7b9d9 }}
2021-06-11 12:00:28.657397+0100 camlKit-Example[3736:123707] [claims] Upload preparation for claim 1B09A1C9-1B93-4AB0-B91D-F8789C91AB3C completed with error: Error Domain=NSCocoaErrorDomain Code=256 "The file “fb19cda6511c09d17006da7aefa63f10ea73f68b” couldn’t be opened." UserInfo={NSURL=file:///Users/simonmcloughlin/Library/Developer/CoreSimulator/Devices/CD0E07DE-8C9C-4466-978B-1F6E635EE0E2/data/Library/Caches/com.apple.Pasteboard/eb77e5f8f043896faf63b5041f0fbd121db984dd/fb19cda6511c09d17006da7aefa63f10ea73f68b, NSFilePath=/Users/simonmcloughlin/Library/Developer/CoreSimulator/Devices/CD0E07DE-8C9C-4466-978B-1F6E635EE0E2/data/Library/Caches/com.apple.Pasteboard/eb77e5f8f043896faf63b5041f0fbd121db984dd/fb19cda6511c09d17006da7aefa63f10ea73f68b, NSUnderlyingError=0x600002813ae0 {Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)"}}
Post not yet marked as solved
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)
Post not yet marked as solved
I have an app that just started becoming unresponsive. I just updated my Mac to 12.3 and Xcode to 13.3.
When compiling my iOS app for iPhone and iPad, it deploys just fine to devices. But, when running in the Simulator the UI stops functioning after a few renders. No input seems to be received, no renders are happening.
In the log I see this message:
[UIFocus] Failed to update focus with context <UIFocusUpdateContext: 0x60000081a8a0: previouslyFocusedItem=(null), nextFocusedItem=(null), focusHeading=None>. No additional info available.
What is causing this only for the Simulator? (I saw another thread with similar-looking questions.)
I even created a completely new Xcode Project, and though the UI is still responsive, in the logs I see:
[UIFocus] Failed to update focus with context <UIFocusUpdateContext: 0x6000025aa940: previouslyFocusedItem=(null), nextFocusedItem=(null), focusHeading=None>. No additional info available.
[UIFocus] Deferring focus update to item <SwiftUI.ListTableViewCell: 0x7fd632846a00>. No additional info available.
[UIFocus] Failed to update focus with context <UIFocusUpdateContext: 0x6000025a5fe0: previouslyFocusedItem=(null), nextFocusedItem=(null), focusHeading=None>. No additional info available.
[UIFocus] Deferring focus update to item <SwiftUI.ListTableViewCell: 0x7fd63284ca00>. No additional
This feels like a relatively new error I haven't seen before.
Post not yet marked as solved
I'm working on an app, and it not working after updating ios to 15.1, when running the app on the simulator can't find version IOS 15.1, I tried to add a new simulator but no ios version 15.1 was found
my app is stuck on this and can't be uploaded to the store
Post not yet marked as solved
Anyone finding any issue with AVSpeechSynthesizer in Xcode 14.0 beta Simulator running iOS 16.0?
[AXTTSCommon] Unable to find voice service for identifier: com.apple.voice.compact.en-US.Ava, voice: TTSSpeechVoice[0x6000026d04e0]: Name: Ava Identifier: com.apple.voice.compact.en-US.Ava Footprint: 3 Language: en-US Gender: Female [default 0] [fallbackDefault: 0] Provider: (null), resource: TTSAXResource&lt;0x600002cdc900&gt; Name:Ava ID:com.apple.voice.compact.en-US.Ava Type:[4:2] Foot:3 Langs:[en-US] Installed:1
Seems it is not finding voice service provider?