Post

Replies

Boosts

Views

Activity

Reply to Safari extension doesn't load
Hey, so I think I just went through this last night. Was very annoying. Xcode only attaches the files if I run the xcrun converter script and load the sample app that comes with it, works fine if I'm just testing the extension, but that doesn't solve the issue of bundling an extension into my actual production app. I believe the issue is a bug with Xcode that doesn't actually copy the extension content files over. I tried copying, moving, and using symbolic links (default). It's so frustrating having to deal with Safari extension bugs so frequently (check my post history). Like @david_tejada, I have had a production app on the App Store for over 2 years now, and wanted to add a new feature and roll it out to our users but then came across this bug that doesn't throw any errors... I want to piggyback on his frustrations with Safari Extension development as well, and I'm sure many of us share these same frustrations: Enduring 5-15 minute build times for small tweaks to a button, because you have to side load the extension into an app. Of course, the something silently broke in the extension, no biggie, let me debug it. Oh, wait, the service_worker doesn't show up in the Develop menu (if it was even loaded in the first place). Forced to load it into Chrome just to see if it runs (it does, flawlessly - and it took 3 clicks and changes are instant with Hot Reloading) Spending hours/days/weeks scouring the internet for that very tiny chance someone else found a solution (rarely ever happens) Write a post about it on the forums just to have the trillion dollar dev team tell you to file a bug report that I pay $99/year just to have the privilege to? Make it make sense. Anyways, the answer is below. Solution: I used this answer as the basis for the logic (if you have enough StackOverflow reputation please upvote it): https://stackoverflow.com/a/79412831/19708203 I did make a small tweak to his solution, by removing the pre-generated Copy Bundle Resources Build Phase completely. I also am using a script to auto-generate the Input and Output File Lists (I didn't use single files like he did). See my setup in the image attached. I was able to automate the above with some post-prebuild scripts (npx expo prebuild - I'm using Expo React Native so was able to create a custom Expo plugin. Sorry, I'm not sure what the Xcode equivalent is, but PM me if you want the script nonetheless)
Topic: Safari & Web SubTopic: General Tags:
Apr ’25
Reply to Safari Web Extension background script becomes unresponsive after 30 seconds
A bit early, but does anyone have any idea if this was fixed in 26.0?
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
Sep ’25
Reply to IOS 26, web extensions no longer available
A bug since 18.4. Apple still hasn't acknowledged it https://developer.apple.com/forums/thread/776622 https://developer.apple.com/forums/thread/785440
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’25
Reply to iOS 18.4 simulator doesn't show installed Safari Web Extensions
This isn't working for me even with the updated software, any idea?
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jun ’25
Reply to Clicking on Quit and Open Safari Extensions Preferences... does nothing
Try this fix and let me know if you have any questions: https://developer.apple.com/forums/thread/776800?answerId=833319022#833319022
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
Apr ’25
Reply to Safari extension doesn't load
Hey, so I think I just went through this last night. Was very annoying. Xcode only attaches the files if I run the xcrun converter script and load the sample app that comes with it, works fine if I'm just testing the extension, but that doesn't solve the issue of bundling an extension into my actual production app. I believe the issue is a bug with Xcode that doesn't actually copy the extension content files over. I tried copying, moving, and using symbolic links (default). It's so frustrating having to deal with Safari extension bugs so frequently (check my post history). Like @david_tejada, I have had a production app on the App Store for over 2 years now, and wanted to add a new feature and roll it out to our users but then came across this bug that doesn't throw any errors... I want to piggyback on his frustrations with Safari Extension development as well, and I'm sure many of us share these same frustrations: Enduring 5-15 minute build times for small tweaks to a button, because you have to side load the extension into an app. Of course, the something silently broke in the extension, no biggie, let me debug it. Oh, wait, the service_worker doesn't show up in the Develop menu (if it was even loaded in the first place). Forced to load it into Chrome just to see if it runs (it does, flawlessly - and it took 3 clicks and changes are instant with Hot Reloading) Spending hours/days/weeks scouring the internet for that very tiny chance someone else found a solution (rarely ever happens) Write a post about it on the forums just to have the trillion dollar dev team tell you to file a bug report that I pay $99/year just to have the privilege to? Make it make sense. Anyways, the answer is below. Solution: I used this answer as the basis for the logic (if you have enough StackOverflow reputation please upvote it): https://stackoverflow.com/a/79412831/19708203 I did make a small tweak to his solution, by removing the pre-generated Copy Bundle Resources Build Phase completely. I also am using a script to auto-generate the Input and Output File Lists (I didn't use single files like he did). See my setup in the image attached. I was able to automate the above with some post-prebuild scripts (npx expo prebuild - I'm using Expo React Native so was able to create a custom Expo plugin. Sorry, I'm not sure what the Xcode equivalent is, but PM me if you want the script nonetheless)
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
Apr ’25
Reply to iOS 17.4.1 Safari extension issues
Just tried it on 17.7 and 18.0 and still facing the same issue
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Sep ’24
Reply to Get cookies - Safari web extension iOS 18
I believe this might be due to the service worker going inert. Known bug since 17.5, sadly. Search the forums for others with the same issue.
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
Aug ’24
Reply to In iOS 18, browser.tabs.getSelected returns 'Undefined' for the Safari iOS App Extension
I believe this might be due to the service worker going inert. Known bug since 17.5, sadly. Search the forums for others with the same issue.
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
Aug ’24
Reply to Safari Extension Service Worker Permanently Killed on iOS 17.4.x-17.6
Still not fixed for iOS 18
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’24
Reply to iOS 17.5.1 safari extension - background scripts not working properly
Following this for an update as well. Completely breaks our app
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’24
Reply to iOS 16, iOS 17, MacOS Sonoma, Safari 17.5, permissionStatus.onchange not working
Also facing this issue
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’24
Reply to Safari iOS extension issues. Background script stops working
Still happening for me, too. Version 17.5 (19618.2.12.11.6)
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’24
Reply to iOS 17.4.1 Safari extension issues
Still happening for me, too. Version 17.5 (19618.2.12.11.6)
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’24
Reply to Browser.permissions.request not working as expected
@sriharshaang having the same issue, have you figured this out?
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
May ’24
Reply to Programmatically open popup in Safari Web Extension
@uzinator hi, did u ever figure this out? Thank you
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
May ’24