Post not yet marked as solved
Hi,
I have a project written in Swift 4 and the following pods are being used in the project:
'GoogleAnalytics'
'GoogleMaps'
'GooglePlaces'
'CarbonKit'
'Firebase/Core'
'Firebase/Messaging'
'Fabric'
'Crashlytics'
'JGProgressHUD'
"QBImagePickerController"
"YoutubePlayer-in-WKWebView", "~> 0.3.0"
'TrustKit'
'SwiftDate', '~> 5.0'
When I am trying to build the same code in XCode version 11.3.1 (11C505), it’s working fine.
But the same code when I am running in XCode version 12.4 (12D4e), it’s showing the following error:
PhaseScriptExecution [CP]\ Embed\ Pods\ Frameworks /Users/pradip.deore/Library/Developer/Xcode/DerivedData/Re-DeploymentApp-cckdvghmcfgjmdgatkuburgwfion/Build/Intermediates.noindex/Re-Deployment\ App.build/Debug-iphonesimulator/Re-Deployment\ App.build/Script-CE61236C3D7447A8846EA69E.sh (in target 'Re-Deployment App' from project 'Re-Deployment App')
cd /Users/pradip.deore/Projects/iOSemployer
/bin/sh -c /Users/pradip.deore/Library/Developer/Xcode/DerivedData/Re-DeploymentApp-cckdvghmcfgjmdgatkuburgwfion/Build/Intermediates.noindex/Re-Deployment\\\ App.build/Debug-iphonesimulator/Re-Deployment\\\ App.build/Script-CE61236C3D7447A8846EA69E.sh
mkdir -p /Users/pradip.deore/Library/Developer/Xcode/DerivedData/Re-DeploymentApp-cckdvghmcfgjmdgatkuburgwfion/Build/Products/Debug-iphonesimulator/ClikSource.app/Frameworks
rsync --delete -av --filter P .*.?????? --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "/Users/pradip.deore/Library/Developer/Xcode/DerivedData/Re-DeploymentApp-cckdvghmcfgjmdgatkuburgwfion/Build/Products/Debug-iphonesimulator/CarbonKit/CarbonKit.framework" "/Users/pradip.deore/Library/Developer/Xcode/DerivedData/Re-DeploymentApp-cckdvghmcfgjmdgatkuburgwfion/Build/Products/Debug-iphonesimulator/ClikSource.app/Frameworks"
building file list ... done
sent 205 bytes received 20 bytes 450.00 bytes/sec
total size is 188599 speedup is 838.22
/Users/pradip.deore/Projects/iOS_employer/Pods/Target Support Files/Pods-Re-Deployment App/Pods-Re-Deployment App-frameworks.sh: line 131: ARCHS[@]: unbound variable
Command PhaseScriptExecution failed with a nonzero exit code
I am unable to find a solution for this. Please help to resolve this issue.
Post not yet marked as solved
Macbook Air M1, get the error in Xcode 12.4:
Could not download and install IOS 12.0 Simulator. Failed to download package from ADC. There are no valid accounts registered with Xcode that have the ability to access this resource. Contact Apple Developer Program Support to resolve account access issues.
I have never had this error on the previous Xcode and Macbook on intel chip. Please can you tell me how to solve it.
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)
}
After updating Xcode to version 12.5 and using simulator 14.5, I'm getting disconnected all the time from the debugger. Please can someone help me?
I also get this:
Domain: IDEDebugSessionErrorDomain
Code: 4
It's a small thing, but every time I open my current Xcode project the default iOS device to run my app on is my phone. Is there a way to change it to one of the simulators? i.e. iPhone Pro 11?
Post not yet marked as solved
SwiftUI Preview Don't work.
Progress Preparing iPhone Simulator for Previews.
SwiftUI
Xcode version 13.0
macOS Big Sur version 11.6
Post not yet marked as solved
In Xcode 13, using the 14.5 and 15.0 simulators, when I use UserDefaults to save preferences for the user, the defaults seem to go away when the app quits (I am using the home button / app switcher / slide up gesture to quit the app in the simulator).
This problem does not occur when using my actual devices (iPad and iPhone).
[userDefaults synchronize] returns YES, however I am getting nil for the key I saved upon next launch.
Note: I am using NSKeyedArchiver archivedDataWithRootObject with requiresSecureCoding set to YES for some keys, however the first key is not using NSKeyedArchiver and is also returning nil.
Post not yet marked as solved
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.
When I run an app that uses location services on the Xcode 13.1 simulator for iOS 15 the location privacy settings are missing. If you go to the settings on the simulator under privacy the section for location services is missing. The exact same thing on a physical iPhone running iOS 15.0 does show the location settings under privacy in the settings app. Where did the settings for location privacy go? In order to test using the simulator a developer needs to be able to turn those settings on and off, like turning off precise location to see how an app responds.
Post not yet marked as solved
Hello , I have a problem of Xcode Simulator Download,
Xcode 13.0 successful installed, Macbook OS 12.0.1;
got an Apple developer Account with my user name and password, free account;
I go to components, and I want to download Simulator IOS 14.5;
but after a long time of waiting, I got the above error message, "Xcode could not download and install simulator,... , kCFErrorDomainCFNetwork error 303.;
I also tried to use sudo /Applications/Xcode.app/Contents/MacOS/Xcode , but still the same error;
What happened and how to solve this problem? thank you!
Post not yet marked as solved
Hi, I've activated the option "Show device mask in screenshots and videos" in iOS Simulator's preferences.
When I take a screenshot of the simulator, using the "Save Screen" button, the "preview" of the screenshot (the one that appears as a small image on MacOS, next to the simulator) shows the frame, but when I save the image, e.g. in the Desktop folder, the frame doesn't appear in the saved image.
Am I missing something, or this feature has a bug?
Post not yet marked as solved
Hello, I have a probelm with the Xcode Simulator not showing desired changes with text font at specific configuration.
When the configuration of a UIButton text was set as below on the editor, althought the changes were viewable on storyboard, the simulator didn't look the same.
Type:Custom
Style: Plain
Title:Attributed
Is there a logical reason why this happens?
Also, the documentation says "Plain" indicate the text is a plain String object whilst "Attributed" indicate the string has become a instance of NSAttributedString. How is it possible to set the style and the title different like Style: Plain/Title: Attributed and vise versa? Maybe this was the reason the simulator didn't work alright?
Thank you in advance
Post not yet marked as solved
MacBook Pro 2018 mid 13.3"
Xcode 13.3
Mac OS Monterey 12.3
I had the kernelpanic bellow three time today. I had Xcode with simulator running all times.
Have anyone this issue?
kernel panic
My version of Xcode was recently updated to 13.3. Now, I can not launch any simulator. I get an "Unable to Boot the Simulator" error from any iOS 15.4 device.
I have deleted all 15.4 devices, and am downloading 15.2 devices to test.
Some other sources are reporting this, too, but I saw nothing on the Developer Forums so thought I'd open a question here.
Hoping for speedy resolution so I don't have to use Android emulators :(. (I develop on Flutter, which is cross platform)
Post not yet marked as solved
I would like to use(or emulate) a virtual USB drive which behaves as a physical USB drive.
Using this, I could try to mount/unmount the Virtual USB and copy(or modify) required files and folders into that(similar to physical USB drive activity).
Is there a way to get or implement this in MacOS(BigSur) system? Could anyone please confirm.
If yes, how this can be achieved.
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
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
Does anyone know how to rid of this message?
It is happening every time I build a project using the simulator with the following versions:
xCode 13.4.1
mac Monterey 12.4.
I didn't see this behavior in Xcode's previous versions.
The issue seems to be because it is adding a new application every time I build the project into the firewall app list. (image below)
Any tips on how to fix this?
Post not yet marked as solved
I get an error on xcode 14.0 beta 5 when run simulator,
detail error :
Details
The operation couldn’t be completed. xpc error Domain: NSPOSIXErrorDomain Code: 64 Failure Reason: xpc error User Info: { DVTErrorCreationDateKey = "2022-08-10 09:21:24 +0000"; IDERunOperationFailingWorker = IDELaunchiPhoneSimulatorLauncher; } -- Analytics Event: com.apple.dt.IDERunOperationWorkerFinished : { "device_model" = "iPhone14,2"; "device_osBuild" = "16.0 (20A5339d)"; "device_platform" = "com.apple.platform.iphonesimulator"; "launchSession_schemeCommand" = Run; "launchSession_state" = 1; "launchSession_targetArch" = arm64; "operation_duration_ms" = 13837; "operation_errorCode" = 64; "operation_errorDomain" = NSPOSIXErrorDomain; "operation_errorWorker" = IDELaunchiPhoneSimulatorLauncher; "operation_name" = IDERunOperationWorkerGroup; "param_consoleMode" = 0; "param_debugger_attachToExtensions" = 0; "param_debugger_attachToXPC" = 1; "param_debugger_type" = 3; "param_destination_isProxy" = 0; "param_destination_platform" = "com.apple.platform.iphonesimulator"; "param_diag_MainThreadChecker_stopOnIssue" = 0; "param_diag_MallocStackLogging_enableDuringAttach" = 0; "param_diag_MallocStackLogging_enableForXPC" = 1; "param_diag_allowLocationSimulation" = 1; "param_diag_checker_tpc_enable" = 1; "param_diag_gpu_frameCapture_enable" = 0; "param_diag_gpu_shaderValidation_enable" = 0; "param_diag_gpu_validation_enable" = 0; "param_diag_memoryGraphOnResourceException" = 0; "param_diag_queueDebugging_enable" = 1; "param_diag_runtimeProfile_generate" = 0; "param_diag_sanitizer_asan_enable" = 0; "param_diag_sanitizer_tsan_enable" = 0; "param_diag_sanitizer_tsan_stopOnIssue" = 0; "param_diag_sanitizer_ubsan_stopOnIssue" = 0; "param_diag_showNonLocalizedStrings" = 0; "param_diag_viewDebugging_enabled" = 1; "param_diag_viewDebugging_insertDylibOnLaunch" = 1; "param_install_style" = 0; "param_launcher_UID" = 2; "param_launcher_allowDeviceSensorReplayData" = 0; "param_launcher_kind" = 0; "param_launcher_style" = 0; "param_launcher_substyle" = 0; "param_runnable_appExtensionHostRunMode" = 0; "param_runnable_productType" = "com.apple.product-type.application"; "param_runnable_type" = 2; "param_testing_launchedForTesting" = 0; "param_testing_suppressSimulatorApp" = 0; "param_testing_usingCLI" = 0; "sdk_canonicalName" = "iphonesimulator16.0"; "sdk_osVersion" = "16.0"; "sdk_variant" = iphonesimulator; } -- System Information macOS Version 13.0 (Build 22A5321d) Xcode 14.0 (21330) (Build 14A5294e) Timestamp: 2022-08-10T16:21:24+07:00
I'm testing network loss handling in my app on the simulator.
Turning WiFi OFF triggers pathUpdateHandler with .unsatisfied status.
Turning WiFi back to ON triggers pathUpdateHandler with .unsatisfied status again.
I noticed that pathUpdateHandler is triggered right after I enabled WiFi, but before WiFi actually connects to the network. When the laptop is actually connected to the WiFi network - pathUpdateHandler isn't triggered, so my app stays in "offline" mode permanently.
networkMonitor.pathUpdateHandler = { [weak self] path in
guard let self = self else { return }
DispatchQueue.main.async {
if path.status == .satisfied {
self.status = .connected
} else {
print(path.unsatisfiedReason)
self.status = .disconnected
}
}
}
monitor.start(queue: queue)
networkMonitor is retained by my DIContainer