Category Archives: Xcode

Xcode UI Recordings Vs Unit Testing

Although they may seem familiar and some people tend to confuse them, Xcode UI Testing and Unit Testing differ notably.

Unit Test is the very much Unit Test we all know, since testing techniques are known. You have complete access to the Main Project and you operate its classes and frameworks like you do as a side library. You can write mocks, stubs, etc.

But UI Test is less familiar.

UI testing differs from unit testing in essential ways.

Continue reading Xcode UI Recordings Vs Unit Testing

Big iOS learning classic is back again

The very well-known Stanford University’s course CS193p (Developing Applications for iOS using SwiftUI) formerly using Swift, has been broadcasted again this year.

This is the second time the curse is entirely done in SwiftUI. The course is very similar to last years’ but has some new approaches and updates that might worth repeating.

Continue reading Big iOS learning classic is back again

Cocoapods Pod install – Pod update differences

How to get a clear succinct picture of these two popular actions.

Use pod install to install new pods in your project. Even if you already have a Podfile and ran pod install before; so even if you are just adding/removing pods to a project already using CocoaPods.

Use pod update [PODNAME] only when you want to update pods to a newer version.

Now, here’s the tricky part, if there’s an existing Podfile.lock that specifies the versions of all requested pods, there is no difference.

Continue reading Cocoapods Pod install – Pod update differences

Change created by commented code tag in XcodE

Change created by tag in Xcode… Simple TIP!

If you want to change the header commented code tag

//  Created by {my name here} on 8/4/20.
//  Copyright 2020 __{my company name here}__. All rights reserved.

This name and company template is usually filled with your User and Company, the one is set on: System Preferences –> Users & Groups –> Current User

But if you have a different User, like a private or trivial one, regardless, you can change this name and other variables in the file header by creating a property list file called: IDETemplateMacros.plist

Continue reading Change created by commented code tag in XcodE

Locate real Watch Icons AssetS

It’s sometime confusing for new developers (or rather new Watch iOS developers) to find exactly where to set the Watch Icons. Well… it’s actually pretty simple.

It may be a bit unclear, because if you use a standard XCode template App, you may find two Assets.xcassets. The first would be under the WatchKit App and the second one under the Watch Kit Extension, usually where you insert your code logic.

Continue reading Locate real Watch Icons AssetS

Buddybuild vs Xcode Server best Continuous Integration system. Current pick, security, risks, maintenance

I am currently setting up a Continuous Integration system for a complex iOS project. Ultimately, I came down to these two options, as I want to stay in Apple’s realm.

This is no easy fly question, I have read a lot about the matter, but the evil is on the details, I want to waive all the pros and cons before moving forward and start a complex implementation.

Continue reading Buddybuild vs Xcode Server best Continuous Integration system. Current pick, security, risks, maintenance