How should XCode, UIKit and Interface Builder be used?

I’m diving into iOS development these days, and I’ve been very confused about XCode and the Apple Dev ecosystem.

First of all, there’s no more Storyboards & Interface Builder tutorials on the official Apple Docs (or I haven’t seen one).

Neither there is a road to follow to get into iOS development. It seems like XCode is not a good tool.

There is not a good divider between what you should do programmatically and what you should do in Interface Builder.

If I look into some open source projects, it seems like the full programmatically approach is widely prefered over the Interface Builder one, but it’s still necessary to have at least one Storyboard.

XCode feels like it’s inconsistent in its state. I’ve seen that Apple is developing SwiftUI, that seems to be full programmatically and declarative.

So here comes my true question : is Apple in a transitive phase from what have been a failure in design (Interface Builder) ?

If it’s a no, how do you think the Apple tools should be used ?

I don’t know if it’s not too opinion-based, but I would like to get the “good way” and the “best practices” things in iOS development.

Homebrew not detecting latest Xcode and Command Line Tools and not uninstalling either

I have macOS Mojave version 10.14.5 installed with Xcode version 10.2.1 and Command Line Tools installed using xcode-select --install. All problem started when I tried to install youtube-dl formula on my system by running:

brew install youtube-dl

The output I get is:

Updating Homebrew... Error: Your Xcode (1) is too outdated. Please update to Xcode 9.0 (or delete it). Xcode can be updated from   https://developer.apple.com/download/more/  Error: Your Command Line Tools are too outdated. Update them from Software Update in the App Store. 

Again, if I run xcode-select --install, I get:

xcode-select: error: command line tools are already installed, use "Software Update" to install updates 

Running:

xcode-select -v

returns

xcode-select version 2354 

(I do not know what this means) and running:

xcode-select -p

yields

/Applications/Xcode.app/Contents/Developer 

Owing to these issues, I tried to uninstall Homebrew (with a plan to reinstall it afresh) by running the command:

ruby -e "$  (curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)" 

but it gives the following error:

curl: (7) Failed to connect to raw.githubusercontent.com port 443: Operation timed out 

Next, I tried to uninstall Homebrew using the unbrew.rb script available at GitHub but it seems not to remove Homebrew. I tried running it with and without sudo. Even after doing this, running brew config returns:

HOMEBREW_VERSION: 1.3.2 ORIGIN: https://github.com/Homebrew/brew HEAD: 751334a257d81851e68da7ab390982d4e9fdf909 Last commit: 1 year, 10 months ago Core tap ORIGIN: https://github.com/Homebrew/homebrew-core Core tap HEAD: 3fd7a855a1a357654a4a9a455162761841a4809d Core tap last commit: 1 year, 10 months ago HOMEBREW_PREFIX: /usr/local HOMEBREW_REPOSITORY: /usr/local/Homebrew HOMEBREW_CELLAR: /usr/local/Cellar HOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com CPU: quad-core 64-bit broadwell Homebrew Ruby: 2.3.7 => /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby Clang: N/A Git: 2.20.1 => /Applications/Xcode.app/Contents/Developer/usr/bin/git Perl: /opt/local/bin/perl => /opt/local/bin/perl5.24 Python: /usr/bin/python Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby Java: N/A macOS: 10.14.5-x86_64 Xcode: 1 => /Applications/Xcode.app/Contents/Developer CLT: N/A X11: N/A MacPorts/Fink: /opt/local/bin/port 

Running brew doctor outputs the following:

Please note that these warnings are just used to help the Homebrew maintainers with debugging if you file an issue. If everything you use Homebrew for is working fine: please don't worry and just ignore them. Thanks!  Warning: Your Command Line Tools are too outdated. Update them from Software Update in the App Store.  Error: Unrecognized Mach-O load command: 0x32 

Is my Homebrew broken by my attempts at uninstalling it? What can I do to repair Homebrew and all these errors in pointing to the right Xcode and command line tools?

XCode 10 – Failed to create provisioning profile – There are no devices registered

When I try to create a profile to build an App, going on Project -> General -> Signing, I select my Team (Personal) and I get two errors:

Failed to create provisioning profile.

There are no devices registered in your account on the developer website. Plug in and select a device to have Xcode register it.

And:

No profiles for ‘com.my.app.id’ were found

Xcode couldn’t find any iOS App Development provisioning profile matching ‘com.my.app.id’.


I tried to check many tutorials and questions but nothing helped me to solve this errors. Many urls brings me to the Apple Development website but there I only have the option to pay for the membership, and as I understood that’s not necessary to build an App in my device.

new Xcode + GitHub

ALL,

For the long time I had an old Mac laptop with 10.8 OSX installed. I put Xcode 5 on it and developed my C++ program on it. Then I put the source code and the Xcode project on GitHub.

Recently I bout myself a new Mac laptop with OSX 10.13. I installed Xcode 9 on it, cloned the same project, build it and tried to execute the binary.

Unfortunately I received a RTE that one of the dylib’s (part of my project) can not be found in /usr/local/lib.

I was advised that it is possible that the project format could’ve changed and it could cause the issue.

Now my questions are:

  1. How do I fix this runtime?
  2. If this is caused by changes to the Xcode project files is it the only way to re-create the project on new machine from scratch?

TIA!

Is it possible to generate an unsigned Xcode archive with Titanium?

We’ve build a Titanium application for a client, but the client wants to be able to sign the application themselves. To do this they requested an unsigned Xcode archive. We’re unable to generate a valid archive using Titanium.

We’ve tried running the xcodebuild command on Xcode project that’s generated by Titanium. Something like:

xcodebuild -workspace <projectName>.xcworkspace -scheme <projectName> -configuration Release clean archive -archivePath buildArchive/<projectName>.xcarchive CODE_SIGNING_ALLOWED=NO 

But that generates an invalid archive, so we suspect that Titanium is doing something extra to generate a valid archive.

We’ve also tried building the app for distribution and editing the generated archive manually. But we’re unable to fully remove the signing from the archive. The entitlements still exist with wrong id after removing the _codeSigning directory and embedded.mobileprovision profile.

Is it maybe possible to write a cli hook to add the CODE_SIGNING_ALLOWED=NO variable during the app build?

UILabels disappear after I run Xcode

I am making a habit tracker app. I have two TableView Controllers. One of them is to display a list of habit, and the other is an input form that allows users to create new idea and habit.However, after I run Xcode, all the UILabel I put on disappear.

import UIKit import RealmSwift

class NewIdeaCreation: UITableViewController {

override func viewDidLoad() {     super.viewDidLoad()     // Do any additional setup after loading the view. }    @IBAction func createButtonPressed(_ sender: UIButton) {     self.dismiss(animated: true, completion: nil)  } 

}

Did I miss anything here?

UILabels disappear after I run Xcode

I am making a habit tracker app. I have two TableView Controllers. One of them is to display a list of habit, and the other is an input form that allows users to create new idea and habit.However, after I run Xcode, all the UILabel I put on disappear.

import UIKit import RealmSwift

class NewIdeaCreation: UITableViewController {

override func viewDidLoad() {     super.viewDidLoad()     // Do any additional setup after loading the view. }    @IBAction func createButtonPressed(_ sender: UIButton) {     self.dismiss(animated: true, completion: nil)  } 

}

Did I miss anything here?

I want to download Xcode that I deleted again. But when I open App Store and search for Xcode the download button is grey

When I downloaded it before I did it through App Store but now that doesn’t work because of that the button is grey. Have tried to download Xcode through developer.apple but there it says that I don’t have enough storage which I clearly do because I got 16 GB free. HELP

I want to download Xcode that I deleted again. But when I open App Store and search for Xcode the download button is grey

When I downloaded it before I did it through App Store but now that doesn’t work because of that the button is grey. Have tried to download Xcode through developer.apple but there it says that I don’t have enough storage which I clearly do because I got 16 GB free. HELP