Masthash

#Xcode

Cihat Gündüz
3 hours ago

Yes, we’ve got some great new features for #Xcode during #WWDC23. 👍

But still no way to:
– sort selected code alphabetically
– multi-line arrays/cases & more
– one-line collections in code

Get all these for #Free with #RemafoX!
Works in Xcode 14, too. 😉

👉 https://iosdev.space/@RemafoX_App/110479425951567644

Pedro Piñera
3 hours ago

The new @tuist website is coming together very nicely. We are taking the opportunity to better explain why your team might consider using it
#Swift #Xcode

Marin Todorov
10 hours ago

The decrease in Xcode's download size is really something 💯 #wwdc #xcode

Dean
22 hours ago

The fantom errors we had in Xcode 14 ... are still there in Xcode 15; and somehow it makes me sad :(
#WWDC23 #WWDC #Xcode

Internet Hedgehog
1 day ago

Hello #Xcode #Vim Mode users: I made a proof of concept spoon for #Hammerspoon which can remap keys (for example, making j/k act like gj/gk) depending on the mode you're in: https://github.com/SilverEzhik/XcodeVimTricks

If you have some bindings that you really miss, check it out!

UPDATE: I found it: https://developer.apple.com/design/human-interface-guidelines/activity-views

——

iOS devs, please help: I want to add an action to every other app’s share menu. I see see what seems like other apps doing the same in my share menu (e.g. “Copy to Goodreader” or "Print to HP Printer”). I'd like for a user to be able to share a photo using my action. But I can't figure out what to search for in the Apple docs to get me the relevant dev documentation. #iOS #Apple #Xcode #Swift #SwiftUI

Medium article 1:
You don't have to always use [weak self].

Medium article 2:
You always have to use [weak self] otherwise kittens will die.

Apple: 😶

#swift #Xcode

I managed to get #Xcode #CoreData and #SwiftData labs this year. All extremely helpful, thanks to some awesome Apple engineers. If you’re not requesting labs, you’re missing out. #WWDC #WWDC23

Jamie Montgomerie
2 days ago

I have an app Xcode project set up with a second library Xcode project as a subproject.

The app target has a static library target from the framework project set as a “Target Dependency” in “Build Phases”, and links the resulting library in “Link Binary With Libraries”. This works great!

I want the iOS Deployment Target to “flow” from the app target ‘into’ the library target, so they’re both the same without having to edit the library target itself. Is this possible?

#xcode #iosdev

Internet Hedgehog
2 days ago

This is a nasty Hammerspoon script, but by god I've bodged it.

A bunch of event taps and screenshots, but it WORKS. I can remap #Vim mode settings in #Xcode.

I can do things like turn j/k to gj/gk, make y/p use the system clipboard and so on. Plus since I'm detecting the mode used, I can have different mappings per mode. I even made a little mapping that makes :w<Return> save and :%s open search and replace.

Internet Hedgehog
2 days ago

Okay, the good news is that I have a somewhat reliable way to determine the current #XCode Vim mode. The bad news is that it's *nasty* - I'm taking a screenshot and comparing the color of a pixel in the debug bar. It does work though!

Steve U
2 days ago

As a developer who lives in #Xcode each day, I hope that #VisionPro supports multiple #Mac displays and at resolutions above 4K. There was no mention of this in the #WWDC keynote.

Rhys Morgan
2 days ago

Does anyone know if the memory leak in XCBBuildService has been fixed in Xcode 15, or if it *is* a Ventura-specific memory leak as I suspect? If so, is it fixed in Sonoma?

Just noticed my Mac running incredibly slowly - XCBBuildService is using >12GB of memory, and Xcode 3.5GB.

I have just two mid-sized projects open.

#WWDC #WWDC23 #xcode #iOS

Activity Monitor showing XCBBuildService using 12GB and Xcode using almost 3.5GB of memory.
Luke Van In
2 days ago

#Xcode 15 beta seems really quite stable.

I’ve been using it for a day with the work project (500kloc, Swift+UIKit) with iOS 17 simulator. So far only minor issues with occasionally not being able to launch the app in the simulator, which is easily fixed by restarting the simulator.

Still early but looking like a solid release so far.

I found an interesting #VoiceOver bug in #Xcode 15. I hope they will not fix it as its soooooo useful.
1. Open Xcode and any project.
2. Focus the text editor
3. Interact with it as much as you can and eventually you will land on your widgets in the desktop.
4. The most interesting, if you interact one time up, you land in your textbox, exactly where you left off.
Why I think this is a bug? Because it doesn’t happen consistently and it happens only in Xcode. #apple, please, don’t fix this.

Designers and developers: Please stop making me hover over shit to reveal information #WWDC #WWDC23 #Xcode

Sebastian
3 days ago

Seit ich den erweiterten Datenschutz für meinen iCloud-Account aktiviert habe funktioniert die #CloudKit-Integration im #xCode-Simulator nicht mehr. Am Anfang dachte ich, das liegt vielleicht daran, dass iOS 16.4 noch nicht für den Simulator verfügbar ist - inzwischen ist das aber der Fall und das Problem besteht weiterhin. Ist der Simulator nicht mit #ADP bzw. #EDS kompatibel? #iOSDev

The new Xcode 15 has removed the side-by-side diff view for commits. Please file feedback that you want this back. #WWDC #WWDC23 #Xcode #Apple

Of course that’s just beginning of the great Iceberg that is Swift UI’s changeling for 2023. However there are some other neat stuff, for example #Xcode making its previews fully accessible for #blind #VoiceOver users! If you want me to write more about all of this and more, let me know. BTW,, Paul Hutson from HackingWithSwift is my idol. Without him I wouldn’t be able to write and understand even 5% of what I write and understand now.

Internet Hedgehog
3 days ago

Oh, looks like Vim mode in #Xcode 15 adds support for `gd` to go to definition!

#wwdc

gallaugher
3 days ago

I've uninstalled #Xcode 15 Beta 1 & reinstalled multiple times. Using Safari, Venture 13.5. Have approved the security after copying iOS 17.0.simruntime to the folder at: /<MacName>/<MacHD>/Library/Developer/CoreSimulator/Profiles/Runtimes Restarted Mac & Xcode. Still getting errors shown below with basic TextField work. Anyone else seeing this? Anyone else solved the issue? Thanks!

Michał Nierebiński
3 days ago

Can you run Xcode 14.X on Sonoma beta? #sonoma #macos #xcode

Internet Hedgehog
3 days ago

Now I am bikeshedding #Xcode #Vim support to see if I can have bodge it to have a couple of my essential keymaps.

To this day I curse the fact that deletes all yank to the system keyboard.

Sven A. Schmidt
3 days ago

@akmarinov Indeed, this works just fine with #Xcode 14 on #macOS #Sonoma as well. Only thing to bear in mind is to allow Terminal full disk access to modify the Info.plist file.

Jason Pester (GameDev)
4 days ago

🖐 Info is trickling out ☝

Finally, some really brief occlusion examples of hands / fingers over #UI elements. In this scene, two small light-blue circle UI elements are shown occluded by an #AppleVisionPro wearer's fingertips.

Meet #ARKit for #Spatial Computing
https://developer.apple.com/videos/play/wwdc2023/10082/

#Apple #WWDC #WWDC23 #WWDC2023 #VisionPro #visionOS #iPadOS #iOS #Xcode #VisionProSimulator #Simulator #RealityComposerPro #AR #VR #MR #XR #Headset #Immersion #Immersive #Hybrid #WorkFromHome #Gaming #GameDev

In this scene, two small light-blue circle UI elements are shown occluded by an Apple Vision Pro wearer's fingertips.

Additionally, the background is a virtual 3D rendering / volumetric scene, so you can also observe how well the hands themselves are being detected by the unit's depth sensors for occlusion against the background itself.
In this scene, two small light-blue circle UI elements are shown occluded by an Apple Vision Pro wearer's fingertips.

Additionally, the background is a virtual 3D rendering / volumetric scene, so you can also observe how well the hands themselves are being detected by the unit's depth sensors for occlusion against the background itself.
Peter Witham
4 days ago

Can I just say ‘Notifications in Xcode 15 for AppStore Connect status'...hell yes and thank you :) #wwdc23 #xcode

George Yang
4 days ago

Xcode 15 added support for bookmarks to help with project navigation. Bookmarks can be annotated and grouped. You can even bookmark search queries. #iOSDev #Xcode #WWDC23

A list of bookmarks showing in Xcode 15's bookmark navigator
George Yang
4 days ago

Less code to render previews by leverage Swift macros, and preview is also available for UIKit and AppKit. #WWDC23 #Xcode #iOSDev #swiftlang

New preview code leverage Swift macros
George Yang
4 days ago

Xcode 15 added side-by-side live documentation preview! #WWDC23 #Xcode #iOSDev

Xcode 15 with editor on the left and documentation preview on the right
George Yang
4 days ago

String Catalogs is awesome for better localization management. Nice job #Xcode team! #Apple #iOSDev #WWDC23

George Yang
4 days ago

Improved auto-completion when calling functions with numerous parameters with default value, in Xcode 15 you can see all permutations by tapping the right-arrow key. #Apple #iOSDev #Xcode #WWDC23

Xcode 15 showing all permutations of a function with default parameter values in auto-completion list
Archimage
4 days ago

OK. I successfully scrubbed my AIr of all XCode fragments, leftovers, and droppings. I’ve reinstalled a single beta copy. Hopefully, this will resolve my debug server issue. But I don’t believe in hope, so it won’t.

Murphy is my friend.

#xcode

Sven A. Schmidt
4 days ago

Bit of a bummer that #Xcode 14 doesn’t run on #macOS 14 Sonoma. That’ll make updating to it harder, will probably have to fiddle around with a Ventura VM again for a while 😞

Cihat Gündüz
4 days ago

#Xcode 15 tidbit:
There’s a new “String Catalog” file replacing the legacy Strings(dict) files! 😍

It comes with a visual editor showing all languages in one place, progress tracking, migrator, automatic code extraction & more!

Can’t wait to support it in @RemafoX_App!
#WWDC23

Cihat Gündüz
4 days ago

#Xcode 15 tidbit:
Images & Colors in Asset Catalogs can now be safely referenced with auto-completion support in your #Swift code! 😍

Basically, Apple sherlocked SwiftGen and made a related update I was planning for @RemafoX_App unnecessary. 👍

#WWDC23

Gernot
4 days ago

Somehow I have NO IDEA how to install the iOS runtime from the DMG that downloaded in Apples new #xcode download format. I copied it to the place, it finds it, and then can't verify the developer… BUT: I am just downloading it from Xcode itself. WHILE I’m in an ICE train. With tethering via my iPhone. And it actually works! Already 4.3 GIGABYTE! With constant 100MBit/s! THIS is the future. 🤯

Natalia Panferova
4 days ago

In Xcode 15 we can access colors and images stored in asset catalog via autogenerated static properties, for example Color(.myGreen) or even Color.myGreen 🤩 No more string literals 🎉 #WWDC23

And this works for older deployment targets too, not just iOS 17!

There is more information about this new feature in my post: https://nilcoalescing.com/blog/Xcode15Assets

#SwiftUI #iOSDev #Xcode #Swift

More fully Below
4 days ago

Is there a secret to downloading Xcode 15? All I get is a Xcode_15_beta.xcdownloadmanifest , but no download …

#wwdc #wwdc23 #iosdev #macdev #Xcode

Jason Pester (GameDev)
5 days ago

Interesting... Apple offers a Vision Pro 3D simulator for Xcode with different room and lighting environments, so you don't really need a physical Vision Pro AR Headset to develop apps for it.

#Apple #WWDC #WWDC23 #WWDC2023 #AppleVisionPro #VisionPro #visionOS #iPadOS #iOS #Xcode #VisionProSimulator #Simulator #RealityComposerPro #AR #Headset #Immersion #Immersive #Spatial #Hybrid #WorkFromHome #Gaming #GameDev

Apple Xcode visionOS device simulator showing virtual scene scenario menu a developer can choose to interact with.

Daytime scene shown.
Apple Xcode visionOS device simulator showing virtual scene scenario menu a developer can choose to interact with.

Nighttime scene shown.

There is no better day to learn new @swift and @swiftui developers than on #wwdc day, when all they use the same hashtags. 😃

You can watch live on:
https://wwdc.phranck.dev

#wwdc23 #wwdc2023 #xcode #apple #Mastowall #Swift #SwiftUI

Kuba Suder
6 days ago

In case this is useful to someone, I have a repo with #SwiftUI generated interfaces that I've been updating semi-regularly since #Xcode 11, so I can see the diffs between different versions (there are separate branches for macOS and watchOS): https://github.com/mackuba/swiftui-headers #Swift #iOSDev #MacDev

Marcel
6 days ago

Friends of #iOS development in #Xcode for #Apple hardware:

Where do I change whatever this is?

apmeyer
1 week ago

“You can’t open the application #Xcode because it is being updated.” I’ll try again next weekend when it’s done. 😭

Just realized I'm missing the latest update to #Xcode. There's the morning gone.

Any of you know #swift well enough to explain this playground? A former coworker sent it to me without an answer. #Xcode

Swift code showing different final results for similar code

It's more than a little weird that Xcode's "Welcome to Xcode!" startup screen doesn't have a New Playground option.

If you click "Create a new Xcode project" there's no playground option there either. #Xcode

Current status.

#Xcode #Update

Downloading Xcode 14.3.1
apmeyer
1 week ago

I've purchased a few #SwiftUI courses in recent years, without first reviewing Apple's own tutorials. They're pretty solid. No doubt the other courses warmed me up to the #Swift syntax and #Xcode. But it seems like Apple is providing some great resources for learning.

Cihat Gündüz
1 week ago

#Xcode pro tip for #SwiftUI previews!📱

While I was extracting an In-App Purchases library from my @RemafoX_App for my upcoming @Twootit_App, I created this:

A preview-only helper that mimics a loading delay so I can see the loading state—no changes to Debug or Production! 🧹💯

Gerrit van Aaken
1 week ago

... und wieder ein Software-Problem durch rummöhren und eigentlich nichts verändern gelöst. #XCode #Capacitor

Axel Le Pennec
2 weeks ago

My .accentColor defined in my Assets.xcassets catalog is not working for a new #Xcode project: the default blue color is used. The "Global Accent Color Name" is correct in the target Build Settings. I tested on Xcode 14.2 and 14.3.

Has anyone else noticed the same?

#ios #iosdev #swiftui

Michael Brown
2 weeks ago

PSA: as of iOS 16.4 a `WKWebView` is no longer inspectable by default, meaning you won't be able to debug it using Safari dev tools. You now have to explicitly enable it: https://webkit.org/blog/13936/enabling-the-inspection-of-web-content-in-apps/
#swift #xcode #iosdev

The #VoiceOver rotors for source code in #Xcode are awesome, and a huge time saver.

Chris Wu :toucan:
2 weeks ago

There's something that's been bothering me for a long time that I want to fix before the WWDC madness starts.

I can't see changes to my translation files with 'git diff' because it considers them binary files.

I'm seeing some solutions where they modify the gitattributes file and others where they convert files to UTF-8. Both approaches are from posts that are several years old.

What's the best way to approach this?

#Xcode #SwiftUI #iOSDev

Natalia Panferova
3 weeks ago

I only recently discovered that in Xcode 14 we can test real remote push notifications on an iOS simulator. Before, simulators couldn't provide a token, limiting us to testing on a device or using .apns payload files and simctl push command.

Now we can send notifications from a server to our app running on a simulator, and even test other features like Notification Service Extensions.

I summarized what setup is needed for this to work in my new post: https://nilcoalescing.com/blog/TestingRemotePushOniOSSimulator

#iOSDev #Xcode

Dave Rahardja
3 weeks ago

I added a little note to explain *why* xcframeworks are needed in the first place. Thanks to @brennansv for the suggestion.

#xcode #ios #macos #apple #Objectivity #swift #framework #xcframework #development

https://www.humancode.us/2023/05/19/all-about-xcframeworks.html

Dave Rahardja
3 weeks ago

Have you ever noticed that when you build an iOS app for Mac Catalyst, $PLATFORM_NAME is set to `macosx`?

When Catalyst was being hashed out, there was quite a bit of discussion around whether we were building against the *iOS* SDK on the Mac, or against a *Mac* SDK that happened to know about iOS. As you can guess in retrospect, the latter worldview prevailed: the Catalyst SDK is a “variant” of the Mac SDK. This made our builder tools folks quite happy, because the Catalyst SDK could be built alongside the Mac one, and Catalyst apps and daemons bundled with macOS could be built together with the rest of macOS.

Xcode, however, seems to continue to insist in its UI that Catalyst apps are actually *iOS* apps that happen to support the Mac.

Which worldview you choose to believe is up to you! I know which one I prefer.

#xcode #macCatalyst #ios #macOS #developers #lore

Dave Rahardja
3 weeks ago

I’ve written down most of what I’ve learned about xcframeworks into this blog post. I hope it can be a one-stop shop to answer all your practical questions, including:

- What is an xcframework?
- What’s in an xcframework?
- How do I make an xcframework?
- How do I consume an xcframework?

Enjoy and please share!

#xcode #ios #macos #apple #objectiveC #swift #framework #xcframework #development

https://www.humancode.us/2023/05/19/all-about-xcframeworks.html

Sören
3 weeks ago

Tried to fight a weird new build issue in #Xcode for a while. Eventually tried with 14.2 instead of 14.3, and… the issue disappeared.

#VisualStudio has this kind of stuff as well, but in that environment, I’m more experienced with figuring out workarounds.

Why are IDEs like this 🙃

(Because software development is still extremely brittle and in its infancy, and IDEs have crazy-complex software stacks)

Wishlist for #WWDC (this one, or next one, whatever):

Full standard library for Linux or at least a good build error / info on what's missing during development (on macOS, ideally with SourceKit, so it works with Nova/VSCode because #Xcode doesn't like server projects).

PS: The work-around for the error from the screenshot is to use `[UInt8].random(count: xx)` instead.

#swift #iosdev #ServerSideSwift #vapor
Screenshot from a build error during a CI/CD build run on linux where a swift app fails to build due to 'SecRandomCopyBytes' not being part of the swift standard library
Sungbin Jo
3 weeks ago

So since I’ve been using my 256GB-sized MBA since last year, and I have a disk-size problem with #Xcode; can I strip out the Intel parts and make the size of Xcode half?
My research seems to point to use lipo: https://eclecticlight.co/2020/07/30/instant-weight-loss-how-to-strip-universal-apps/
But I’m not sure if it will work out with Xcode. Has anyone have any experience on this?

Day 181. There are a ton of things to love about #SwiftUI. But one of my favorites it's got to be the possibility of previewing Variants in #Xcode: the possibility of seeing your UI in dark/light modes, all #DynamicType sizes, and orientations, side-by-side.

#365DaysIOSAccessibility

#accessibility #iOSDev

Variants can be found as a button in SwiftUI's content view in Xcode and let you choose between "Color Scheme Variants", "Orientation Variants", and "Dynamic Type Variants". Two examples in the image show Color Scheme Variants where it can be compared how the app looks in both dark and light modes, side by side. The second one shows the same with Dynamic Type Variants where you can see how your app looks in all possible text sizes, including accessibility text sizes.

Day 180. If you are using #SwiftUI to build your apps, there is a fairly basic but very useful Accessibility Inspector built right there in the Inspectors Panel, on the right side of #Xcode.

#365DaysIOSAccessibility

#accessibility #iOSDev

Content view showing the preview of a SwiftUI interface consisting of a rating component where you can rate something from one to five thumbs up. In the Inspectors panel, there is an Accessibility Inspector. If you make the content view selectable, you can select any time in the preview and it will show some of the basic accessibility attributes for that component in the inspector. In the case of the rating component, the label is "rating", the value is "0" and the actions is "adjustable".
Steve Streza
4 weeks ago

The best niche feature in #Xcode is the ability to split the text cursor along multiple lines. Hold the option key and drag down across multiple lines of code to create multiple cursors. Then you can navigate, delete, and type across all of them. And it's semantically-driven, so if you press say option-right, it will navigate those cursors right one word, even if those words are different lengths. Incredible for fast renames/refactors. No notes, it works as I expect every single time.

Dave Rahardja
1 month ago

Uhh, what happened to the #Xcode #instruments Energy profiler tool in Xcode 13? Is it gone?

There seems to be chatter about using the telemetry tool to get information about your app’s energy usage, but that’s for released apps. How do I measure the energy profile of an app I’m currently working on?

Michael Doise
1 month ago

So could we be getting a surprise at #WWDC2023? We saw #LogicPro and #FinalCut for #iPadOS, could we also see #Xcode now?

Christian Tietze
1 month ago

What!

The!

Weren't we all complaining that the #Xcode console would be nicer if it detached for #debugging?

What about using Terminal?

I did not notice this setting, ever!

Nerius
1 month ago

PSA: Apps built with Xcode 14.3 crash on iOS 15.0, 15.1 & 15.1.1 😭

https://forums.swift.org/t/structured-concurrency-bug-in-xcode-14-3/64614

#swift #iosdev #xcode

Adam Cook
1 month ago

@khalidabuhakmeh Not spicy in my book.

A shame that we could, at least for the foreseeable future, break free of the horrendous #XCode developer experience though.

Eric Vitiello
1 month ago
Cihat Gündüz
2 months ago

Did you know that you can partly use #Swift 6 in #Xcode 14.3?

Why you should? For more safety, to prevent a "big" migration later, and of course to use some cool new features today!

I just migrated @RemafoX_App to "Swift 6 mode" & documented it:
https://www.fline.dev/preparing-for-swift-6/?ref=iosdev.space

#iOSDev #AppDevelopment

Carlo Zottmann
2 months ago

JFC, #Xcode, what is wrong with you 🤬

southwesterly
2 months ago

#introduction

I am learning to code my Apple Macintosh computer using #swift and #Xcode so I can make ethical software that helps people and means something.

I do this so I can eventually live and work remotely on a #sailboat

One small step at a time.

Jay :verified_gay:
2 months ago

Is there a list somewhere of all the statements that are similar to `#function` that I can use in #Xcode? Also what are these actually called??

#swift

In Xcode, I found out I can do #function and get the function name pretty easily (which is cool) but now I wanna know what else I can do easily.

Dave Rahardja
2 months ago

How do you create a .framework out of a Package.swift project?

In Ye Olde Days I think you use `swift package generate-xcodeproj` to create a wrapper Xcode Project, but how do you do it these days now that the command is gone?

#swift #swiftPM #xcode

Sven A. Schmidt
2 months ago

Can't wait to try @kishikawakatsumi’s “Power Assert” library with #SwiftLang macros. Looks amazing!

https://forums.swift.org/t/introducing-swift-power-assert/64197

#Swift #Xcode

Examples of the #powerAssert macro in use. It allows you write and assert expression like max(a,b) == c and below the expression breaks down the constituent values, pointing to them with ASCII art “pointers”.

For example, it would display the given values for a (4), b (7), and c (12), the result of max being 7 and that the overall assertion is therefore false.
Jeff C. 🇺🇦
2 months ago
Jeff C. 🇺🇦
2 months ago

Is there an established process in which to use Xcode Cloud for setting up automated unit testing of Swift packages?

It looks like you can only use Xcode Cloud for apps. I’m fine with creating a “dummy” app for this purpose, if need be, but all of my tests are part of the package itself and I don’t know how to set up a workflow that triggers them.

The docs are maddeningly vague about this use case. Is it not supported?

#iOSDev #Xcode

Marcin Krzyzanowski
2 months ago

#Xcode 14.3 👏 well done

April Fools' Day