Post

Replies

Boosts

Views

Activity

SwiftUI Preview fails - System Policy: deny(1) file-read-data
I have yet to see a SwiftUI Preview generated successfully in my environment - MacOS 10.15.7, Xcode 12.1. I always get "Cannot preview in the file -- Failed to update preview." When I pull the diagnostic report (in this case from an Apple SwiftUI tutorial) and examine the mass of data, I find the following snippet from the sandbox.txt file: 2020-10-24 14:01:11.326639-0700 0x15c471&#9; Error&#9;&#9;&#9; 0x0&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;233&#9;&#9;0&#9;&#9;sandboxd: (CoreSymbolication) Region <private> [7fff209d6f28 -> 4d67) outside of relocations in mmap SOD 2020-10-24 14:01:11.332566-0700 0x15c471&#9; Error&#9;&#9;&#9; 0x0&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;233&#9;&#9;0&#9;&#9;sandboxd: [com.apple.sandbox.reporting:violation] Sandbox: Landmarks(22842) System Policy: deny(1) file-read-data /Users/kgomara/Documents/OMaraConsultingAssoc/Projects/CreatingAndCombiningViews/Complete/Landmarks/Build/Intermediates.noindex/Previews/Landmarks/Intermediates.noindex/CreatingAndCombiningViews.build/Debug-iphonesimulator/Landmarks.build/Objects-normal/x86_64/ContentView.2.preview-thunk.dylib Violation:&#9;&#9;&#9; System Policy: deny(1) file-read-data /Users/kgomara/Documents/OMaraConsultingAssoc/Projects/CreatingAndCombiningViews/Complete/Landmarks/Build/Intermediates.noindex/Previews/Landmarks/Intermediates.noindex/CreatingAndCombiningViews.build/Debug-iphonesimulator/Landmarks.build/Objects-normal/x86_64/ContentView.2.preview-thunk.dylib Process:&#9;&#9;&#9;&#9; Landmarks [22842] I don't think it's Unix permissions, but to be sure I chmod'd 777 from /User to the .dylib - which didn't help. I'm pretty sure the System policy violation is the root cause - but how do I fix it?
0
0
726
Oct ’20
Not able to "connect via network" for debugging
I am trying to establish a remote connection to an iOS 11 device for debugging. Both devices are on the same Wi-Fi network, I'm using Xcode 9 and in Window-&gt;Devices and Simulators have checked the "Connect via network" box. I do not get a network icon next to my device, nor do I get any prompt on the device itself.The application if for point of sale and the Wi-Fi firewall has most ports blocked. For example, I know port 22 (ssh) is blocked - the only open port I'm certain of is 8080. I suspect the port used for debugging is blocked. What port(s) are used for debugging? I can request the network guys open a few ports if needed.
15
1
39k
Oct ’17
UIBarButtonItem enabled state color wrong
We have not been able to reliably recreate this situation, but sometimes our UIBarbuttonItems (in a UIToolbar) appear to be disabled - i.e., it has a "greyed out" appearance. The buttons ARE enabled - if you tap them their action is invoked.Has anyone seen this behavior?
9
0
5.7k
Apr ’17