Xcode 10.1: the profile is not an "iOS In House" profile

I am trying to distribute through the Enteprise method in my Xcode 10.1 in order to get the .ipa to the organization

For App Thinning, I selected All compatible device variants and selected Rebuild from Bitcode.

In the PROD.app selection, I select the PROD mobile provisioning profile that the organization provided to me, but the following error appears below:

enter the description of the image here

What does this mean and how do I solve it?

ios – Why does the Xcode interface creator create UIView as a "phone"?

I want to create a custom subclass of UIView, to add some tags, images, etc. I don't like using Storyboards and Xibs, but I have to use them now in my new project. I can't understand why, for God's sake, the creator of Xcode interfaces shows UIView in the hierarchy of view as "phone" instead of just seeing with some frame.

I tried to create an Xib file using this:

new file> empty (in the user interfaces section)> xib file name

And I got this:

enter the description of the image here

After adding UIView to the hierarchy of views, I get this:

enter the description of the image here

But I want it to be a simple view where I can insert any subview. Or is it just a view and the interface creator shows it this stupid way? Because I'm used to seeing custom UIView subclasses like this:

enter the description of the image here

This last screenshot is from the same project, but it is a subclass of UIBUtton and was created by another person. Thanks for the help / explanation.

FYI: I am using Xcode 10.3

sudo – How to configure nvram from xcode to enable detailed boot?

In the terminal:

sudo nvram boot-args="-v"

But in my application I get an exception:

//  AppDelegate.swift
//  ShellScriptaculous
//  Created by Tom Atkinson on 1/04/19.
//  Copyright © 2019 Tomachi Corporation. All rights reserved.

import Cocoa

class AppDelegate: NSObject, NSApplicationDelegate {

    @IBOutlet weak var window: NSWindow!

    func applicationDidFinishLaunching(_ aNotification: Notification) {
        // Insert code here to initialize your application

    func applicationWillTerminate(_ aNotification: Notification) {
        // Insert code here to tear down your application

    @IBAction func verboseboot(_ sender: NSButton) {
        let nvram = "/usr/sbin/nvram"
        let sudo = "/usr/bin/sudo"

        sender.isEnabled = false

        var arguments = ("-p")
        let task1 = Process.launchedProcess(launchPath: nvram, arguments: arguments)

        arguments = ("/usr/sbin/nvram", "boot-args="-v"")
        let task2 = Process.launchedProcess(launchPath: sudo, arguments: arguments)

        arguments = ("-p")
        let task3 = Process.launchedProcess(launchPath: nvram, arguments: arguments)

        sender.isEnabled = true

//        /usr/sbin/nvram -p
//        /usr/bin/sudo /usr/sbin/nvram boot-args="-v"
//        /usr/sbin/nvram -p



When compiled, executed and clicked on the button, I see:

2019-09-06 17:32:28.464738+1200 ShellScriptaculous(53421:831785) (General) Couldn't posix_spawn: error 1
2019-09-06 17:32:28.469363+1200 ShellScriptaculous(53421:831785) (General) (
    0   CoreFoundation                      0x00007fff34f602fd __exceptionPreprocess + 256
    1   libobjc.A.dylib                     0x00007fff5f631a17 objc_exception_throw + 48
    2   CoreFoundation                      0x00007fff34f6012f +(NSException raise:format:) + 201
    3   Foundation                          0x00007fff371543b9 -(NSConcreteTask launchWithDictionary:error:) + 4437
    4   Foundation                          0x00007fff37161d0c +(NSTask launchedTaskWithLaunchPath:arguments:) + 197
    5   ShellScriptaculous                  0x0000000100001b0b $s18ShellScriptaculous11AppDelegateC11verbosebootyySo8NSButtonCF + 875
    6   ShellScriptaculous                  0x0000000100001d8c $s18ShellScriptaculous11AppDelegateC11verbosebootyySo8NSButtonCFTo + 60
    7   AppKit                              0x00007fff32792644 -(NSApplication(NSResponder) sendAction:to:from:) + 312
    8   AppKit                              0x00007fff327fc992 -(NSControl sendAction:to:) + 86
    9   AppKit                              0x00007fff327fc8c4 __26-(NSCell _sendActionFrom:)_block_invoke + 136
    10  AppKit                              0x00007fff327fc7c6 -(NSCell _sendActionFrom:) + 178
    11  AppKit                              0x00007fff3282954b -(NSButtonCell _sendActionFrom:) + 96
    12  AppKit                              0x00007fff327fb0e1 -(NSCell trackMouse:inRect:ofView:untilMouseUp:) + 2375
    13  AppKit                              0x00007fff3282929c -(NSButtonCell trackMouse:inRect:ofView:untilMouseUp:) + 698
    14  AppKit                              0x00007fff327f9b1e -(NSControl mouseDown:) + 791
    15  AppKit                              0x00007fff326d5937 -(NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:) + 5724
    16  AppKit                              0x00007fff3260c1a6 -(NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:) + 2295
    17  AppKit                              0x00007fff3260b667 -(NSWindow(NSEventRouting) sendEvent:) + 478
    18  AppKit                              0x00007fff324aae6b -(NSApplication(NSEvent) sendEvent:) + 331
    19  AppKit                              0x00007fff324995e0 -(NSApplication run) + 755
    20  AppKit                              0x00007fff32488ae8 NSApplicationMain + 777
    21  ShellScriptaculous                  0x0000000100001fcd main + 13
    22  libdyld.dylib                       0x00007fff60dff3d5 start + 1
    23  ???                                 0x0000000000000003 0x0 + 3

I'm just learning, so I thought it would start in a simple way: run a lot of shell scripts from the Xcode application. An extremely heavy way to launch a shell script, but I think getting started is easy! But that didn't work …

Every time I try to run my project in xcode, my mac mini freezes, why does this happen?

I have a new Mac mini and the project was working fine yesterday, but today I tried to run my application on my iPhone and xcode gets stuck in the part of the building. All mac freezes, including my keyboard and mouse. How can i fix this?

catalina: the option Xcode 11 by clicking on the source files to open them next to the active editor does not work

So, the weirdest thing that happened to me …

I have a problem not being able to click on a source file to open it next to the source file I am working on.
Strange … Then, I rebooted my pre-Catalina operating system and tried there. The option click works there.
So, let's go back to Catalina beta. Created a new user account. He switched to that account, started xcode, created a new project and that's it. Click option works. I thought I knew the solution: use the new user account and work from there. So I open the project I was working on and … No more options, click to open a source file next to another source file.

So, on the same machine, the same partition, the same XCode, the same XCode configuration (!!!), I can use the option to click on projectONE in the source files to open them next to the active editor, but not in projectTWO.

What could be the problem?

xcode – NAVIGATIONBAR Customized Swift

My goal is to be able to add a sidebar that is of a different color to the navigationBar now looks like this

enter image description here

I would like to achieve something like this:

enter image description here

My code is as follows

func setupNavigationBar(showBack:Bool, showMenu:Bool,isLogin:Bool)
    self.navigationController?.navigationBar.isTranslucent = true

    var leftItemTitle = UIBarButtonItem()
    var backgroundItem = UIBarButtonItem()

    let sizeLength = UIScreen.main.bounds.size.height * 2
    let defaultNavigationBarFrame = CGRect(x: 0, y: 0, width: sizeLength, height: 70)

    let mediumView = UIView()
    let frame = self.navigationController?.navigationBar.frame.size
    mediumView.frame = CGRect(x: 0, y: 0, width: frame!.width,  height: frame!.height)
    mediumView.backgroundColor = UIColor.red

    let titleLabel = UILabel()
    titleLabel.text = self.menuText
    titleLabel.font = UIFont.systemFont(ofSize: 20)
    titleLabel.textColor = UIColor.white

    leftItemTitle = UIBarButtonItem(customView: titleLabel)

    if(!showBack && !showMenu && !isLogin){
        self.navigationController?.navigationBar.tintColor = UIColor.clear
        self.navigationItem.setHidesBackButton(true, animated:false);
        self.navigationController?.navigationBar.barTintColor = Utils.Color.LigthViewBackGround
    else if(showBack){
        let backMenuButtonItem = UIBarButtonItem(image: UIImage.init(named: "backButton"), style: UIBarButtonItemStyle.done, target: self, action: #selector(backPressed))
        backMenuButtonItem.tintColor = UIColor.white
        backMenuButtonItem.width = CGFloat(30)

        self.navigationItem.leftBarButtonItems = (backMenuButtonItem,leftItemTitle,)
            self.navigationController?.navigationBar.barTintColor = Utils.Color.backgroundBlue

    else if(showMenu){
        let sideMenuButtonItem = UIBarButtonItem(image: UIImage.init(named: "sideMenu"), style: UIBarButtonItemStyle.done, target: self, action: #selector(sideMenuPressed))
        sideMenuButtonItem.tintColor = UIColor.white
        sideMenuButtonItem.width = CGFloat(30)

        let vistaAzul = UIView(frame: CGRect (x: 0, y: 0, width: UIScreen.main.bounds.size.width, height: 30 ))
        vistaAzul.backgroundColor = Utils.Color.BlueLabelText

// self.navigationController? .navigationBar.addSubview (blue view)
            self.navigationItem.leftBarButtonItems = (sideMenuButtonItem, leftItemTitle)

    else if (isLogin){
           self.navigationController?.navigationBar.barTintColor = Utils.Color.backgroundLogin

    if let hidden = navigationController?.navigationBar.isHidden
            self.navigationController?.navigationBar.barStyle = .default
            self.navigationController?.navigationBar.barStyle = .black


macbook – Download Xcode 10.2.1 in macOS High Sierra (10.13.6)

I use MacBook pro with macOS High Sierra (10.13.6). The version of Xcode that I am using is 10.1 and I see that the updated Xcode in AppStore is 10.3, which is not compatible with my environment since I expect macOS Mojave 10.14.6.

How can I get Xcode 10.2.1 that was released after the release of Xcode 10.1? Will MacBook Pro with macOS High Sierra (10.13.6) also receive the macOS Mojave 10.14.6 update? Thank you

ios: How will XCode, UIKit and Interface Builder be used?

I'm immersing myself in iOS development these days, and I've been very confused about XCode and the Apple Dev ecosystem.

First, there are no more Storyboards and Interface Builder tutorials in official Apple documents (or I have not seen any).

Nor is there a way forward to enter the development of iOS.
It seems that XCode is not a good tool.

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

If I analyze some open source projects, it seems that the full programmatic approach is much preferred over Interface Builder, but it is still necessary to have at least one Storyboard.

XCode feels that it is inconsistent in its state. I have seen that Apple is developing SwiftUI, which seems to be completely programmed and declarative.

So here comes my real question: Is Apple in a transitive phase of what has been a design flaw (Interface Builder)?

If it is a no How do you think Apple's tools should be used?

I do not know if it is not based too much on the opinion, but I would like to know the "good practices" and the "best practices" in the development of iOS.

xcode – GoogleMobileAds.h not found

I created a new project in the unit and only downloaded an official plugins website.
Link: https: //developers.google.com/admob/unity/start
and create a compilation for ios in xcode

but it's a mistake, I'm solving this problem the last two weeks, I still can not solve my problem, please help?

googlemobilead.h error

enter the description of the image here

Missing XCode Today Notification Center template

I'm trying to create a widget for the Today view in the Notification Center. The Apple documentation https://developer.apple.com/library/archive/documentation/General/Conceptual/ExtensibilityPG/Today.html says there is an XCode Today template, however, when I run XCode (10.2.1) and select New project there is no such template

How can I get the template or create a widget for the Today view?

Available templates

More templates available