Post

Replies

Boosts

Views

Activity

Safari extension not showing up
Hi,I'm trying to investigate the new Safari App Extension architecture but cannot even get through this basic tutorial:https://developer.apple.com/library/content/documentation/General/Conceptual/ExtensibilityPG/ExtensionCreation.html#//apple_ref/doc/uid/TP40014214-CH5-SW1FWIW, I'm on El Capitan 10.11.6. My Safari version is 10.0.1. I'm using Xcode 8.0. The only deviations from the tutorial are in the targets that I have defined. I created a new project based on the OSX Cocoa Application template. I then added a macOS Safari Extension template - they are both unmodified. This builds and runs as expected; an empty application window pops up.In Safari, I then navigate to Preferences -> Extensions. The extension bundled with the app is not available in the left hand pane as directed by the tutorial.I have got the Develop menu enabled and "Allow unsigned extensions" is checked. I suspect this is some kind of signing issue and that Xcode is ignoring my extension. Each target is "Ad Hoc Signed". FWIW - I did try adjusting Build Settings to "Don't Code Sign" for each target but see the same problem. Anyone out there experiencing similar issues or have good advice on how to resolve this. I see nothing indicating a problem in any logs and am not sure how to go about debugging this. Any advice would be greatly appreciated!
7
0
6.8k
Nov ’16
Any workaround to M1 crashes initializing a WkContentRuleListStore
We purchased M1 Mac mini hardware to run our pipelines, however, we get a crash whenever running on IOS13 simulators using Xcode 12.X when trying to initialize WKContentRuleListStore. The crash does not happen on Intel hardware nor on M1 with IOS14 simulators. The storeUrl is initialized as follows: let storeUrl = try? FileManager.default.url(for: .documentDirectory, in: .userDomainMask, appropriateFor: nil, create: true) ?? FileManager.default.temporaryDirectory The temporaryDirectory is not being used, storeUrl resolves to the doc directory as expected. When calling: WKContentRuleListStore(url: storeUrl) The following stack trace is observed: Thread 1 Queue : com.apple.main-thread (serial) 2#0 0x000000011b283dc7 in bmalloc::Heap::Heap(bmalloc::HeapKind, std::__1::lock_guardbmalloc::Mutex&) () 3#1 0x000000011b280175 in bmalloc::PerProcessbmalloc::PerHeapKindbmalloc::Heap ::getSlowCase() () 4#2 0x000000011b280985 in bmalloc::PerHeapKindBasebmalloc::Cache::PerHeapKindBase() () 5#3 0x000000011b2803a6 in bmalloc::PerThreadbmalloc::PerHeapKindbmalloc::Cache ::getSlowCase() () 6#4 0x000000011b280464 in bmalloc::Cache::allocateSlowCaseNullCache(bmalloc::HeapKind, unsigned long) () 7#5 0x000000011b230d1c in WTF::StringImpl::create(unsigned char const*) () 8#6 0x000000011b27708e in WTF::String::String(char const*) () 9#7 0x000000012201c4b1 in +[WKContentRuleListStore storeWithURL:] () 10#8 0x000000010d8f6a04 in @nonobjc WKContentRuleListStore.__allocating_init(url:) () 11#9 0x000000010d8f6769 in DefaultContentBlockingService.init(config:storeUrl:logger:) at ***/ContentBlocking/DefaultContentBlockingService.swift:50
0
0
755
Mar ’21