Date   

Re: If anyone likes to use option to copy a range of text, don't do it in Xcode and hit undo.

Alex Zavatone
 

Sorry, I meant an undo after a paste. There’s nothing stranger than getting stuck with 47 insertion points after you pasted in the wrong place, then did an undo and are left with 47 insertion points.

On Jun 10, 2021, at 5:06 PM, Ben Kennedy <ben-groups@zygoat.ca> wrote:


On 10 Jun 2021, at 2:58 pm, Alex Zavatone via groups.io <zav=mac.com@groups.io> wrote:

Even if you undo it? Why does it keep the multiple insertion points after you hit undo?
I don't think copying or undoing has anything to do with this (certainly the notion of copy followed by undo doesn't make sense).

If you option-drag to select a multi-line range, and then immediately press a cursor (arrow) key, you'll have the plural cursors. An easy way to summon them when wanted.

-b






Re: If anyone likes to use option to copy a range of text, don't do it in Xcode and hit undo.

Ben Kennedy
 

On 10 Jun 2021, at 2:58 pm, Alex Zavatone via groups.io <zav=mac.com@groups.io> wrote:

Even if you undo it? Why does it keep the multiple insertion points after you hit undo?
I don't think copying or undoing has anything to do with this (certainly the notion of copy followed by undo doesn't make sense).

If you option-drag to select a multi-line range, and then immediately press a cursor (arrow) key, you'll have the plural cursors. An easy way to summon them when wanted.

-b


Re: If anyone likes to use option to copy a range of text, don't do it in Xcode and hit undo.

Alex Zavatone
 

Even if you undo it? Why does it keep the multiple insertion points after you hit undo?

On Jun 10, 2021, at 4:56 PM, Ben Kennedy <ben-groups@zygoat.ca> wrote:


On 10 Jun 2021, at 1:36 pm, Alex Zavatone via groups.io <zav=mac.com@groups.io> wrote:

You’ll get as many text insertion points as you have lines pasted.

It can screw up your code fast if you like to press things like keys on your keyboard, including Return or Enter.

Simply clicking outside your undo block can reset your 47 text insertion points.
Pressing Escape works too.

This is a feature. It makes multi-line editing a breeze. I've taken advantage of it on several occasions.

-ben






Re: If anyone likes to use option to copy a range of text, don't do it in Xcode and hit undo.

Ben Kennedy
 

On 10 Jun 2021, at 1:36 pm, Alex Zavatone via groups.io <zav=mac.com@groups.io> wrote:

You’ll get as many text insertion points as you have lines pasted.

It can screw up your code fast if you like to press things like keys on your keyboard, including Return or Enter.

Simply clicking outside your undo block can reset your 47 text insertion points.
Pressing Escape works too.

This is a feature. It makes multi-line editing a breeze. I've taken advantage of it on several occasions.

-ben


If anyone likes to use option to copy a range of text, don't do it in Xcode and hit undo.

Alex Zavatone
 

You’ll get as many text insertion points as you have lines pasted.

It can screw up your code fast if you like to press things like keys on your keyboard, including Return or Enter.

Simply clicking outside your undo block can reset your 47 text insertion points.

Caveat emptor and away!

Cheers,
Alex Zavatone


Re: XC 12.4 content preview issue

tridiak
 

First thing I checked. It is.

On 6/06/2021, at 4:33 AM, Alex Zavatone via groups.io <zav@...> wrote:

Open the File Inspector.

Is AppDelegate.swift part of any targets?  If not, add it to your target.

Cheers,
Alex Zavatone

On Jun 4, 2021, at 5:10 PM, tridiak <tridiaknz@...> wrote:

Created a new SwiftUI template in XC 12.4 and tried to use the content preview of the 'hello world' template.
Content preview blabs this error : "Cannot preview in the file - AppDelegate.swift is not found in any targets".
Besides dropping iPad from the deployment options I have made no changes whatsoever.
Running mac OS 10.15.7 (Catalina).

Anyone have any idea?

TIA Mark

Diagnostics gives this large wall of text

CouldNotFindInputNodeInBuiltGraphError<XcodeGraphSource, PreviewTranslationUnit>: AppDelegate.swift not found in any targets

AppDelegate.swift must belong to at least one target in the current scheme in order to use previews

Element: PreviewTranslationUnit(moduleNamePrefix: "AppDelegate", sourceIdentifier: file:///Users/tridiak/Programming/Active_Projects/DandD/SpellList2/SpellList/SpellList/AppDelegate.swift -> AppDelegate.swift, parseTree: UVModel.ParseTree(modelPath: , dataSource: UVModel.ImmutableTextDataSource(implementation: SourceEditorDataSource: Contents Length: 560, Lines: 36, Locked: false), version: 5610, statements: [UVModel.DeclarationStatement(declaration: UVModel.ImportDeclaration(modelPath: [0], attributes: [], entityFlavor: nil, module: Cocoa, fullName: "Cocoa", location: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 0, column: 0), start: UVModel.SourceLocation.Bound(line: 7, column: 0), end: UVModel.SourceLocation.Bound(line: 7, column: 12), triviaEnd: UVModel.SourceLocation.Bound(line: 7, column: 12)))), UVModel.DeclarationStatement(declaration: UVModel.ClassDeclaration(modelPath: [1], typePath: UVModel.TypePath(components: PreviewFoundation.Inhabited<Swift.Array<UVModel.TypePath.Component>>(predicated: PreviewFoundation.Predicated<PreviewFoundation.HasHead<Swift.Array<UVModel.TypePath.Component>>>(value: [UVModel.TypePath.Component(genre: UVModel.TypeNameGenre.class, name: "AppDelegate")], proof: UVModel.TypePath.Component(genre: UVModel.TypeNameGenre.class, name: "AppDelegate")))), accessLevel: nil, attributes: ["@main"], inheritedTypes: [NSObject, NSApplicationDelegate], members: [UVModel.ConcreteTypeDeclarationMember.declaration(UVModel.VariableDeclaration(modelPath: [1].[0], name: "window", type: Optional(NSWindow!), isStatic: false, mutability: UVModel.VariableDeclaration.Mutability.mutable, value: nil, property: nil, rewriter: UVModel.SwiftSyntaxVariableDeclarationRewriter(version: 5610, nameLocation: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 12, column: 15), start: UVModel.SourceLocation.Bound(line: 12, column: 15), end: UVModel.SourceLocation.Bound(line: 12, column: 21), triviaEnd: UVModel.SourceLocation.Bound(line: 12, column: 21)), equalLocation: nil, value: nil, declLocation: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 10, column: 52), start: UVModel.SourceLocation.Bound(line: 12, column: 1), end: UVModel.SourceLocation.Bound(line: 12, column: 32), triviaEnd: UVModel.SourceLocation.Bound(line: 12, column: 32))))), UVModel.ConcreteTypeDeclarationMember.declaration(UVModel.FunctionDeclaration(modelPath: [1].[1], name: "applicationDidFinishLaunching", fullName: "applicationDidFinishLaunching(_:)", postnameDeclarationCode: "(_ aNotification: Notification)", declarationLevel: UVModel.MemberDeclarationLevel.instance, isOperator: false, isInlined: false, isMutating: false, isStatic: false, attributes: [], parameters: [UVModel.FunctionDeclaration.Parameter(externalName: UVModel.ParameterExternalName.none, name: "aNotification", type: Notification)], returnType: nil, body: UVModel.CodeBlock(modelPath: [1].[1], name: UVModel.ModelPath.Component.CollectionName.anonymous, statements: [UVModel.ExpressionStatement(expression: UVModel.InstantiationExpression(modelPath: [1].[1].[0], type: LoadSpellSlotsFile, callee: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 15, column: 68), start: UVModel.SourceLocation.Bound(line: 18, column: 2), end: UVModel.SourceLocation.Bound(line: 18, column: 20), triviaEnd: UVModel.SourceLocation.Bound(line: 18, column: 20)), arguments: [UVModel.Argument(modelPath: [1].[1].[0].arg[0], name: Optional("force"), value: UVModel.BooleanLiteralExpression(modelPath: [1].[1].[0].arg[0].value, value: true, modifiers: [], rewriter: UVModel.BasicExpressionRewriter(locationWithoutModifiers: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 18, column: 28), start: UVModel.SourceLocation.Bound(line: 18, column: 28), end: UVModel.SourceLocation.Bound(line: 18, column: 32), triviaEnd: UVModel.SourceLocation.Bound(line: 18, column: 32)), modifierLocations: [], version: 5610)), location: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 18, column: 21), start: UVModel.SourceLocation.Bound(line: 18, column: 21), end: UVModel.SourceLocation.Bound(line: 18, column: 32), triviaEnd: UVModel.SourceLocation.Bound(line: 18, column: 32)), version: 5610)], subscriptArguments: [], modifiers: [], argumentRewriter: UVModel.SwiftSyntaxFunctionCallArgumentRewriter(nodeBeforeArgumentListLocation: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 15, column: 68), start: UVModel.SourceLocation.Bound(line: 18, column: 2), end: UVModel.SourceLocation.Bound(line: 18, column: 20), triviaEnd: UVModel.SourceLocation.Bound(line: 18, column: 20)), leftDelimiterLocation: Optional(UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 18, column: 20), start: UVModel.SourceLocation.Bound(line: 18, column: 20), end: UVModel.SourceLocation.Bound(line: 18, column: 21), triviaEnd: UVModel.SourceLocation.Bound(line: 18, column: 21))), argumentLocations: [(argument: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 18, column: 21), start: UVModel.SourceLocation.Bound(line: 18, column: 21), end: UVModel.SourceLocation.Bound(line: 18, column: 32), triviaEnd: UVModel.SourceLocation.Bound(line: 18, column: 32)), expression: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 18, column: 28), start: UVModel.SourceLocation.Bound(line: 18, column: 28), end: UVModel.SourceLocation.Bound(line: 18, column: 32), triviaEnd: UVModel.SourceLocation.Bound(line: 18, column: 32)), trailingComma: nil)], rightDelimiterLocation: Optional(UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 18, column: 32), start: UVModel.SourceLocation.Bound(line: 18, column: 32), end: UVModel.SourceLocation.Bound(line: 18, column: 33), triviaEnd: UVModel.SourceLocation.Bound(line: 18, column: 33))), trailingClosureLocation: nil, version: 5610), rewriter: UVModel.InstantiationExpressionRewriter(calleeLocation: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 15, column: 68), start: UVModel.SourceLocation.Bound(line: 18, column: 2), end: UVModel.SourceLocation.Bound(line: 18, column: 20), triviaEnd: UVModel.SourceLocation.Bound(line: 18, column: 20)), calleeAndArgumentListLocation: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 15, column: 68), start: UVModel.SourceLocation.Bound(line: 18, column: 2), end: UVModel.SourceLocation.Bound(line: 18, column: 33), triviaEnd: UVModel.SourceLocation.Bound(line: 18, column: 33)), modifierLocations: [], subscriptRewriter: UVModel.SwiftSyntaxSubscriptArgumentRewriter(nodeBeforeArgumentListLocation: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 15, column: 68), start: UVModel.SourceLocation.Bound(line: 18, column: 2), end: UVModel.SourceLocation.Bound(line: 18, column: 33), triviaEnd: UVModel.SourceLocation.Bound(line: 18, column: 33)), leftDelimiterLocation: nil, argumentLocations: [], rightDelimiterLocation: nil, version: 5610), version: 5610))), UVModel.UnsupportedStatement(modelPath: [1].[1].[1], name: nil, type: Optional(""))]), rewriter: UVModel.SwiftSyntaxMemberProcedureDeclarationRewriter(version: 5610, leftBraceLocation: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 15, column: 67), start: UVModel.SourceLocation.Bound(line: 15, column: 67), end: UVModel.SourceLocation.Bound(line: 15, column: 68), triviaEnd: UVModel.SourceLocation.Bound(line: 15, column: 68)), statementLocations: [UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 15, column: 68), start: UVModel.SourceLocation.Bound(line: 18, column: 2), end: UVModel.SourceLocation.Bound(line: 18, column: 33), triviaEnd: UVModel.SourceLocation.Bound(line: 18, column: 33)), UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 18, column: 33), start: UVModel.SourceLocation.Bound(line: 21, column: 2), end: UVModel.SourceLocation.Bound(line: 26, column: 3), triviaEnd: UVModel.SourceLocation.Bound(line: 26, column: 3))], rightBraceLocation: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 26, column: 3), start: UVModel.SourceLocation.Bound(line: 27, column: 1), end: UVModel.SourceLocation.Bound(line: 27, column: 2), triviaEnd: UVModel.SourceLocation.Bound(line: 27, column: 2))), flavor: UVModel.ProceduralDeclarationFlavor.function)), UVModel.ConcreteTypeDeclarationMember.declaration(UVModel.FunctionDeclaration(modelPath: [1].[2], name: "applicationWillTerminate", fullName: "applicationWillTerminate(_:)", postnameDeclarationCode: "(_ aNotification: Notification)", declarationLevel: UVModel.MemberDeclarationLevel.instance, isOperator: false, isInlined: false, isMutating: false, isStatic: false, attributes: [], parameters: [UVModel.FunctionDeclaration.Parameter(externalName: UVModel.ParameterExternalName.none, name: "aNotification", type: Notification)], returnType: nil, body: UVModel.CodeBlock(modelPath: [1].[2], name: UVModel.ModelPath.Component.CollectionName.anonymous, statements: []), rewriter: UVModel.SwiftSyntaxMemberProcedureDeclarationRewriter(version: 5610, leftBraceLocation: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 29, column: 62), start: UVModel.SourceLocation.Bound(line: 29, column: 62), end: UVModel.SourceLocation.Bound(line: 29, column: 63), triviaEnd: UVModel.SourceLocation.Bound(line: 29, column: 63)), statementLocations: [], rightBraceLocation: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 29, column: 63), start: UVModel.SourceLocation.Bound(line: 31, column: 1), end: UVModel.SourceLocation.Bound(line: 31, column: 2), triviaEnd: UVModel.SourceLocation.Bound(line: 31, column: 2))), flavor: UVModel.ProceduralDeclarationFlavor.function))], identifierLocation: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 10, column: 6), start: UVModel.SourceLocation.Bound(line: 10, column: 6), end: UVModel.SourceLocation.Bound(line: 10, column: 17), triviaEnd: UVModel.SourceLocation.Bound(line: 10, column: 17)), location: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 7, column: 12), start: UVModel.SourceLocation.Bound(line: 9, column: 0), end: UVModel.SourceLocation.Bound(line: 34, column: 1), triviaEnd: UVModel.SourceLocation.Bound(line: 34, column: 1))))], location: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 0, column: 0), start: UVModel.SourceLocation.Bound(line: 7, column: 0), end: UVModel.SourceLocation.Bound(line: 35, column: 0), triviaEnd: UVModel.SourceLocation.Bound(line: 35, column: 0)), previewProviderPaths: []))



Re: XC 12.4 content preview issue

Rick Mann
 

I get this problem a lot with Xcode 12.5, and it seems like a bug. Sometimes cleaning the project and quitting Xcode helps.

On Jun 4, 2021, at 15:10 , tridiak <tridiaknz@gmail.com> wrote:

Created a new SwiftUI template in XC 12.4 and tried to use the content preview of the 'hello world' template.
Content preview blabs this error : "Cannot preview in the file - AppDelegate.swift is not found in any targets".
Besides dropping iPad from the deployment options I have made no changes whatsoever.
Running mac OS 10.15.7 (Catalina).

Anyone have any idea?

TIA Mark

Diagnostics gives this large wall of text

CouldNotFindInputNodeInBuiltGraphError<XcodeGraphSource, PreviewTranslationUnit>: AppDelegate.swift not found in any targets

AppDelegate.swift must belong to at least one target in the current scheme in order to use previews

Element: PreviewTranslationUnit(moduleNamePrefix: "AppDelegate", sourceIdentifier: file:///Users/tridiak/Programming/Active_Projects/DandD/SpellList2/SpellList/SpellList/AppDelegate.swift -> AppDelegate.swift, parseTree: UVModel.ParseTree(modelPath: , dataSource: UVModel.ImmutableTextDataSource(implementation: SourceEditorDataSource: Contents Length: 560, Lines: 36, Locked: false), version: 5610, statements: [UVModel.DeclarationStatement(declaration: UVModel.ImportDeclaration(modelPath: [0], attributes: [], entityFlavor: nil, module: Cocoa, fullName: "Cocoa", location: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 0, column: 0), start: UVModel.SourceLocation.Bound(line: 7, column: 0), end: UVModel.SourceLocation.Bound(line: 7, column: 12), triviaEnd: UVModel.SourceLocation.Bound(line: 7, column: 12)))), UVModel.DeclarationStatement(declaration: UVModel.ClassDeclaration(modelPath: [1], typePath: UVModel.TypePath(components: PreviewFoundation.Inhabited<Swift.Array<UVModel.TypePath.Component>>(predicated: PreviewFoundation.Predicated<PreviewFoundation.HasHead<Swift.Array<UVModel.TypePath.Component>>>(value: [UVModel.TypePath.Component(genre: UVModel.TypeNameGenre.class, name: "AppDelegate")], proof: UVModel.TypePath.Component(genre: UVModel.TypeNameGenre.class, name: "AppDelegate")))), accessLevel: nil, attributes: ["@main"], inheritedTypes: [NSObject, NSApplicationDelegate], members: [UVModel.ConcreteTypeDeclarationMember.declaration(UVModel.VariableDeclaration(modelPath: [1].[0], name: "window", type: Optional(NSWindow!), isStatic: false, mutability: UVModel.VariableDeclaration.Mutability.mutable, value: nil, property: nil, rewriter: UVModel.SwiftSyntaxVariableDeclarationRewriter(version: 5610, nameLocation: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 12, column: 15), start: UVModel.SourceLocation.Bound(line: 12, column: 15), end: UVModel.SourceLocation.Bound(line: 12, column: 21), triviaEnd: UVModel.SourceLocation.Bound(line: 12, column: 21)), equalLocation: nil, value: nil, declLocation: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 10, column: 52), start: UVModel.SourceLocation.Bound(line: 12, column: 1), end: UVModel.SourceLocation.Bound(line: 12, column: 32), triviaEnd: UVModel.SourceLocation.Bound(line: 12, column: 32))))), UVModel.ConcreteTypeDeclarationMember.declaration(UVModel.FunctionDeclaration(modelPath: [1].[1], name: "applicationDidFinishLaunching", fullName: "applicationDidFinishLaunching(_:)", postnameDeclarationCode: "(_ aNotification: Notification)", declarationLevel: UVModel.MemberDeclarationLevel.instance, isOperator: false, isInlined: false, isMutating: false, isStatic: false, attributes: [], parameters: [UVModel.FunctionDeclaration.Parameter(externalName: UVModel.ParameterExternalName.none, name: "aNotification", type: Notification)], returnType: nil, body: UVModel.CodeBlock(modelPath: [1].[1], name: UVModel.ModelPath.Component.CollectionName.anonymous, statements: [UVModel.ExpressionStatement(expression: UVModel.InstantiationExpression(modelPath: [1].[1].[0], type: LoadSpellSlotsFile, callee: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 15, column: 68), start: UVModel.SourceLocation.Bound(line: 18, column: 2), end: UVModel.SourceLocation.Bound(line: 18, column: 20), triviaEnd: UVModel.SourceLocation.Bound(line: 18, column: 20)), arguments: [UVModel.Argument(modelPath: [1].[1].[0].arg[0], name: Optional("force"), value: UVModel.BooleanLiteralExpression(modelPath: [1].[1].[0].arg[0].value, value: true, modifiers: [], rewriter: UVModel.BasicExpressionRewriter(locationWithoutModifiers: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 18, column: 28), start: UVModel.SourceLocation.Bound(line: 18, column: 28), end: UVModel.SourceLocation.Bound(line: 18, column: 32), triviaEnd: UVModel.SourceLocation.Bound(line: 18, column: 32)), modifierLocations: [], version: 5610)), location: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 18, column: 21), start: UVModel.SourceLocation.Bound(line: 18, column: 21), end: UVModel.SourceLocation.Bound(line: 18, column: 32), triviaEnd: UVModel.SourceLocation.Bound(line: 18, column: 32)), version: 5610)], subscriptArguments: [], modifiers: [], argumentRewriter: UVModel.SwiftSyntaxFunctionCallArgumentRewriter(nodeBeforeArgumentListLocation: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 15, column: 68), start: UVModel.SourceLocation.Bound(line: 18, column: 2), end: UVModel.SourceLocation.Bound(line: 18, column: 20), triviaEnd: UVModel.SourceLocation.Bound(line: 18, column: 20)), leftDelimiterLocation: Optional(UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 18, column: 20), start: UVModel.SourceLocation.Bound(line: 18, column: 20), end: UVModel.SourceLocation.Bound(line: 18, column: 21), triviaEnd: UVModel.SourceLocation.Bound(line: 18, column: 21))), argumentLocations: [(argument: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 18, column: 21), start: UVModel.SourceLocation.Bound(line: 18, column: 21), end: UVModel.SourceLocation.Bound(line: 18, column: 32), triviaEnd: UVModel.SourceLocation.Bound(line: 18, column: 32)), expression: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 18, column: 28), start: UVModel.SourceLocation.Bound(line: 18, column: 28), end: UVModel.SourceLocation.Bound(line: 18, column: 32), triviaEnd: UVModel.SourceLocation.Bound(line: 18, column: 32)), trailingComma: nil)], rightDelimiterLocation: Optional(UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 18, column: 32), start: UVModel.SourceLocation.Bound(line: 18, column: 32), end: UVModel.SourceLocation.Bound(line: 18, column: 33), triviaEnd: UVModel.SourceLocation.Bound(line: 18, column: 33))), trailingClosureLocation: nil, version: 5610), rewriter: UVModel.InstantiationExpressionRewriter(calleeLocation: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 15, column: 68), start: UVModel.SourceLocation.Bound(line: 18, column: 2), end: UVModel.SourceLocation.Bound(line: 18, column: 20), triviaEnd: UVModel.SourceLocation.Bound(line: 18, column: 20)), calleeAndArgumentListLocation: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 15, column: 68), start: UVModel.SourceLocation.Bound(line: 18, column: 2), end: UVModel.SourceLocation.Bound(line: 18, column: 33), triviaEnd: UVModel.SourceLocation.Bound(line: 18, column: 33)), modifierLocations: [], subscriptRewriter: UVModel.SwiftSyntaxSubscriptArgumentRewriter(nodeBeforeArgumentListLocation: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 15, column: 68), start: UVModel.SourceLocation.Bound(line: 18, column: 2), end: UVModel.SourceLocation.Bound(line: 18, column: 33), triviaEnd: UVModel.SourceLocation.Bound(line: 18, column: 33)), leftDelimiterLocation: nil, argumentLocations: [], rightDelimiterLocation: nil, version: 5610), version: 5610))), UVModel.UnsupportedStatement(modelPath: [1].[1].[1], name: nil, type: Optional(""))]), rewriter: UVModel.SwiftSyntaxMemberProcedureDeclarationRewriter(version: 5610, leftBraceLocation: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 15, column: 67), start: UVModel.SourceLocation.Bound(line: 15, column: 67), end: UVModel.SourceLocation.Bound(line: 15, column: 68), triviaEnd: UVModel.SourceLocation.Bound(line: 15, column: 68)), statementLocations: [UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 15, column: 68), start: UVModel.SourceLocation.Bound(line: 18, column: 2), end: UVModel.SourceLocation.Bound(line: 18, column: 33), triviaEnd: UVModel.SourceLocation.Bound(line: 18, column: 33)), UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 18, column: 33), start: UVModel.SourceLocation.Bound(line: 21, column: 2), end: UVModel.SourceLocation.Bound(line: 26, column: 3), triviaEnd: UVModel.SourceLocation.Bound(line: 26, column: 3))], rightBraceLocation: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 26, column: 3), start: UVModel.SourceLocation.Bound(line: 27, column: 1), end: UVModel.SourceLocation.Bound(line: 27, column: 2), triviaEnd: UVModel.SourceLocation.Bound(line: 27, column: 2))), flavor: UVModel.ProceduralDeclarationFlavor.function)), UVModel.ConcreteTypeDeclarationMember.declaration(UVModel.FunctionDeclaration(modelPath: [1].[2], name: "applicationWillTerminate", fullName: "applicationWillTerminate(_:)", postnameDeclarationCode: "(_ aNotification: Notification)", declarationLevel: UVModel.MemberDeclarationLevel.instance, isOperator: false, isInlined: false, isMutating: false, isStatic: false, attributes: [], parameters: [UVModel.FunctionDeclaration.Parameter(externalName: UVModel.ParameterExternalName.none, name: "aNotification", type: Notification)], returnType: nil, body: UVModel.CodeBlock(modelPath: [1].[2], name: UVModel.ModelPath.Component.CollectionName.anonymous, statements: []), rewriter: UVModel.SwiftSyntaxMemberProcedureDeclarationRewriter(version: 5610, leftBraceLocation: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 29, column: 62), start: UVModel.SourceLocation.Bound(line: 29, column: 62), end: UVModel.SourceLocation.Bound(line: 29, column: 63), triviaEnd: UVModel.SourceLocation.Bound(line: 29, column: 63)), statementLocations: [], rightBraceLocation: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 29, column: 63), start: UVModel.SourceLocation.Bound(line: 31, column: 1), end: UVModel.SourceLocation.Bound(line: 31, column: 2), triviaEnd: UVModel.SourceLocation.Bound(line: 31, column: 2))), flavor: UVModel.ProceduralDeclarationFlavor.function))], identifierLocation: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 10, column: 6), start: UVModel.SourceLocation.Bound(line: 10, column: 6), end: UVModel.SourceLocation.Bound(line: 10, column: 17), triviaEnd: UVModel.SourceLocation.Bound(line: 10, column: 17)), location: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 7, column: 12), start: UVModel.SourceLocation.Bound(line: 9, column: 0), end: UVModel.SourceLocation.Bound(line: 34, column: 1), triviaEnd: UVModel.SourceLocation.Bound(line: 34, column: 1))))], location: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 0, column: 0), start: UVModel.SourceLocation.Bound(line: 7, column: 0), end: UVModel.SourceLocation.Bound(line: 35, column: 0), triviaEnd: UVModel.SourceLocation.Bound(line: 35, column: 0)), previewProviderPaths: []))
--
Rick Mann
rmann@latencyzero.com


Re: Storyboard Library closing all the time

James Walker
 

On Jun 5, 2021, at 11:29 AM, Alex Zavatone via groups.io <zav=mac.com@groups.io> wrote:

Does anyone know if there is a way when working in the storyboard to prevent the library from closing after you drag an item from it? It’s pretty infuriating to have to open it again after EVERY time you place an item.

Fingers crossed.
Option-click the + button to open the library window, and it will stay open.


Storyboard Library closing all the time

Alex Zavatone
 

Does anyone know if there is a way when working in the storyboard to prevent the library from closing after you drag an item from it? It’s pretty infuriating to have to open it again after EVERY time you place an item.

Fingers crossed.

Thanks in advance.
Alex Zavatone


Re: XC 12.4 content preview issue

Alex Zavatone
 

Open the File Inspector.

Is AppDelegate.swift part of any targets?  If not, add it to your target.

Cheers,
Alex Zavatone

On Jun 4, 2021, at 5:10 PM, tridiak <tridiaknz@...> wrote:

Created a new SwiftUI template in XC 12.4 and tried to use the content preview of the 'hello world' template.
Content preview blabs this error : "Cannot preview in the file - AppDelegate.swift is not found in any targets".
Besides dropping iPad from the deployment options I have made no changes whatsoever.
Running mac OS 10.15.7 (Catalina).

Anyone have any idea?

TIA Mark

Diagnostics gives this large wall of text

CouldNotFindInputNodeInBuiltGraphError<XcodeGraphSource, PreviewTranslationUnit>: AppDelegate.swift not found in any targets

AppDelegate.swift must belong to at least one target in the current scheme in order to use previews

Element: PreviewTranslationUnit(moduleNamePrefix: "AppDelegate", sourceIdentifier: file:///Users/tridiak/Programming/Active_Projects/DandD/SpellList2/SpellList/SpellList/AppDelegate.swift -> AppDelegate.swift, parseTree: UVModel.ParseTree(modelPath: , dataSource: UVModel.ImmutableTextDataSource(implementation: SourceEditorDataSource: Contents Length: 560, Lines: 36, Locked: false), version: 5610, statements: [UVModel.DeclarationStatement(declaration: UVModel.ImportDeclaration(modelPath: [0], attributes: [], entityFlavor: nil, module: Cocoa, fullName: "Cocoa", location: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 0, column: 0), start: UVModel.SourceLocation.Bound(line: 7, column: 0), end: UVModel.SourceLocation.Bound(line: 7, column: 12), triviaEnd: UVModel.SourceLocation.Bound(line: 7, column: 12)))), UVModel.DeclarationStatement(declaration: UVModel.ClassDeclaration(modelPath: [1], typePath: UVModel.TypePath(components: PreviewFoundation.Inhabited<Swift.Array<UVModel.TypePath.Component>>(predicated: PreviewFoundation.Predicated<PreviewFoundation.HasHead<Swift.Array<UVModel.TypePath.Component>>>(value: [UVModel.TypePath.Component(genre: UVModel.TypeNameGenre.class, name: "AppDelegate")], proof: UVModel.TypePath.Component(genre: UVModel.TypeNameGenre.class, name: "AppDelegate")))), accessLevel: nil, attributes: ["@main"], inheritedTypes: [NSObject, NSApplicationDelegate], members: [UVModel.ConcreteTypeDeclarationMember.declaration(UVModel.VariableDeclaration(modelPath: [1].[0], name: "window", type: Optional(NSWindow!), isStatic: false, mutability: UVModel.VariableDeclaration.Mutability.mutable, value: nil, property: nil, rewriter: UVModel.SwiftSyntaxVariableDeclarationRewriter(version: 5610, nameLocation: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 12, column: 15), start: UVModel.SourceLocation.Bound(line: 12, column: 15), end: UVModel.SourceLocation.Bound(line: 12, column: 21), triviaEnd: UVModel.SourceLocation.Bound(line: 12, column: 21)), equalLocation: nil, value: nil, declLocation: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 10, column: 52), start: UVModel.SourceLocation.Bound(line: 12, column: 1), end: UVModel.SourceLocation.Bound(line: 12, column: 32), triviaEnd: UVModel.SourceLocation.Bound(line: 12, column: 32))))), UVModel.ConcreteTypeDeclarationMember.declaration(UVModel.FunctionDeclaration(modelPath: [1].[1], name: "applicationDidFinishLaunching", fullName: "applicationDidFinishLaunching(_:)", postnameDeclarationCode: "(_ aNotification: Notification)", declarationLevel: UVModel.MemberDeclarationLevel.instance, isOperator: false, isInlined: false, isMutating: false, isStatic: false, attributes: [], parameters: [UVModel.FunctionDeclaration.Parameter(externalName: UVModel.ParameterExternalName.none, name: "aNotification", type: Notification)], returnType: nil, body: UVModel.CodeBlock(modelPath: [1].[1], name: UVModel.ModelPath.Component.CollectionName.anonymous, statements: [UVModel.ExpressionStatement(expression: UVModel.InstantiationExpression(modelPath: [1].[1].[0], type: LoadSpellSlotsFile, callee: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 15, column: 68), start: UVModel.SourceLocation.Bound(line: 18, column: 2), end: UVModel.SourceLocation.Bound(line: 18, column: 20), triviaEnd: UVModel.SourceLocation.Bound(line: 18, column: 20)), arguments: [UVModel.Argument(modelPath: [1].[1].[0].arg[0], name: Optional("force"), value: UVModel.BooleanLiteralExpression(modelPath: [1].[1].[0].arg[0].value, value: true, modifiers: [], rewriter: UVModel.BasicExpressionRewriter(locationWithoutModifiers: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 18, column: 28), start: UVModel.SourceLocation.Bound(line: 18, column: 28), end: UVModel.SourceLocation.Bound(line: 18, column: 32), triviaEnd: UVModel.SourceLocation.Bound(line: 18, column: 32)), modifierLocations: [], version: 5610)), location: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 18, column: 21), start: UVModel.SourceLocation.Bound(line: 18, column: 21), end: UVModel.SourceLocation.Bound(line: 18, column: 32), triviaEnd: UVModel.SourceLocation.Bound(line: 18, column: 32)), version: 5610)], subscriptArguments: [], modifiers: [], argumentRewriter: UVModel.SwiftSyntaxFunctionCallArgumentRewriter(nodeBeforeArgumentListLocation: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 15, column: 68), start: UVModel.SourceLocation.Bound(line: 18, column: 2), end: UVModel.SourceLocation.Bound(line: 18, column: 20), triviaEnd: UVModel.SourceLocation.Bound(line: 18, column: 20)), leftDelimiterLocation: Optional(UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 18, column: 20), start: UVModel.SourceLocation.Bound(line: 18, column: 20), end: UVModel.SourceLocation.Bound(line: 18, column: 21), triviaEnd: UVModel.SourceLocation.Bound(line: 18, column: 21))), argumentLocations: [(argument: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 18, column: 21), start: UVModel.SourceLocation.Bound(line: 18, column: 21), end: UVModel.SourceLocation.Bound(line: 18, column: 32), triviaEnd: UVModel.SourceLocation.Bound(line: 18, column: 32)), expression: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 18, column: 28), start: UVModel.SourceLocation.Bound(line: 18, column: 28), end: UVModel.SourceLocation.Bound(line: 18, column: 32), triviaEnd: UVModel.SourceLocation.Bound(line: 18, column: 32)), trailingComma: nil)], rightDelimiterLocation: Optional(UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 18, column: 32), start: UVModel.SourceLocation.Bound(line: 18, column: 32), end: UVModel.SourceLocation.Bound(line: 18, column: 33), triviaEnd: UVModel.SourceLocation.Bound(line: 18, column: 33))), trailingClosureLocation: nil, version: 5610), rewriter: UVModel.InstantiationExpressionRewriter(calleeLocation: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 15, column: 68), start: UVModel.SourceLocation.Bound(line: 18, column: 2), end: UVModel.SourceLocation.Bound(line: 18, column: 20), triviaEnd: UVModel.SourceLocation.Bound(line: 18, column: 20)), calleeAndArgumentListLocation: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 15, column: 68), start: UVModel.SourceLocation.Bound(line: 18, column: 2), end: UVModel.SourceLocation.Bound(line: 18, column: 33), triviaEnd: UVModel.SourceLocation.Bound(line: 18, column: 33)), modifierLocations: [], subscriptRewriter: UVModel.SwiftSyntaxSubscriptArgumentRewriter(nodeBeforeArgumentListLocation: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 15, column: 68), start: UVModel.SourceLocation.Bound(line: 18, column: 2), end: UVModel.SourceLocation.Bound(line: 18, column: 33), triviaEnd: UVModel.SourceLocation.Bound(line: 18, column: 33)), leftDelimiterLocation: nil, argumentLocations: [], rightDelimiterLocation: nil, version: 5610), version: 5610))), UVModel.UnsupportedStatement(modelPath: [1].[1].[1], name: nil, type: Optional(""))]), rewriter: UVModel.SwiftSyntaxMemberProcedureDeclarationRewriter(version: 5610, leftBraceLocation: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 15, column: 67), start: UVModel.SourceLocation.Bound(line: 15, column: 67), end: UVModel.SourceLocation.Bound(line: 15, column: 68), triviaEnd: UVModel.SourceLocation.Bound(line: 15, column: 68)), statementLocations: [UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 15, column: 68), start: UVModel.SourceLocation.Bound(line: 18, column: 2), end: UVModel.SourceLocation.Bound(line: 18, column: 33), triviaEnd: UVModel.SourceLocation.Bound(line: 18, column: 33)), UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 18, column: 33), start: UVModel.SourceLocation.Bound(line: 21, column: 2), end: UVModel.SourceLocation.Bound(line: 26, column: 3), triviaEnd: UVModel.SourceLocation.Bound(line: 26, column: 3))], rightBraceLocation: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 26, column: 3), start: UVModel.SourceLocation.Bound(line: 27, column: 1), end: UVModel.SourceLocation.Bound(line: 27, column: 2), triviaEnd: UVModel.SourceLocation.Bound(line: 27, column: 2))), flavor: UVModel.ProceduralDeclarationFlavor.function)), UVModel.ConcreteTypeDeclarationMember.declaration(UVModel.FunctionDeclaration(modelPath: [1].[2], name: "applicationWillTerminate", fullName: "applicationWillTerminate(_:)", postnameDeclarationCode: "(_ aNotification: Notification)", declarationLevel: UVModel.MemberDeclarationLevel.instance, isOperator: false, isInlined: false, isMutating: false, isStatic: false, attributes: [], parameters: [UVModel.FunctionDeclaration.Parameter(externalName: UVModel.ParameterExternalName.none, name: "aNotification", type: Notification)], returnType: nil, body: UVModel.CodeBlock(modelPath: [1].[2], name: UVModel.ModelPath.Component.CollectionName.anonymous, statements: []), rewriter: UVModel.SwiftSyntaxMemberProcedureDeclarationRewriter(version: 5610, leftBraceLocation: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 29, column: 62), start: UVModel.SourceLocation.Bound(line: 29, column: 62), end: UVModel.SourceLocation.Bound(line: 29, column: 63), triviaEnd: UVModel.SourceLocation.Bound(line: 29, column: 63)), statementLocations: [], rightBraceLocation: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 29, column: 63), start: UVModel.SourceLocation.Bound(line: 31, column: 1), end: UVModel.SourceLocation.Bound(line: 31, column: 2), triviaEnd: UVModel.SourceLocation.Bound(line: 31, column: 2))), flavor: UVModel.ProceduralDeclarationFlavor.function))], identifierLocation: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 10, column: 6), start: UVModel.SourceLocation.Bound(line: 10, column: 6), end: UVModel.SourceLocation.Bound(line: 10, column: 17), triviaEnd: UVModel.SourceLocation.Bound(line: 10, column: 17)), location: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 7, column: 12), start: UVModel.SourceLocation.Bound(line: 9, column: 0), end: UVModel.SourceLocation.Bound(line: 34, column: 1), triviaEnd: UVModel.SourceLocation.Bound(line: 34, column: 1))))], location: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 0, column: 0), start: UVModel.SourceLocation.Bound(line: 7, column: 0), end: UVModel.SourceLocation.Bound(line: 35, column: 0), triviaEnd: UVModel.SourceLocation.Bound(line: 35, column: 0)), previewProviderPaths: []))


XC 12.4 content preview issue

tridiak
 

Created a new SwiftUI template in XC 12.4 and tried to use the content preview of the 'hello world' template.
Content preview blabs this error : "Cannot preview in the file - AppDelegate.swift is not found in any targets".
Besides dropping iPad from the deployment options I have made no changes whatsoever.
Running mac OS 10.15.7 (Catalina).

Anyone have any idea?

TIA Mark

Diagnostics gives this large wall of text

CouldNotFindInputNodeInBuiltGraphError<XcodeGraphSource, PreviewTranslationUnit>: AppDelegate.swift not found in any targets

AppDelegate.swift must belong to at least one target in the current scheme in order to use previews

Element: PreviewTranslationUnit(moduleNamePrefix: "AppDelegate", sourceIdentifier: file:///Users/tridiak/Programming/Active_Projects/DandD/SpellList2/SpellList/SpellList/AppDelegate.swift -> AppDelegate.swift, parseTree: UVModel.ParseTree(modelPath: , dataSource: UVModel.ImmutableTextDataSource(implementation: SourceEditorDataSource: Contents Length: 560, Lines: 36, Locked: false), version: 5610, statements: [UVModel.DeclarationStatement(declaration: UVModel.ImportDeclaration(modelPath: [0], attributes: [], entityFlavor: nil, module: Cocoa, fullName: "Cocoa", location: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 0, column: 0), start: UVModel.SourceLocation.Bound(line: 7, column: 0), end: UVModel.SourceLocation.Bound(line: 7, column: 12), triviaEnd: UVModel.SourceLocation.Bound(line: 7, column: 12)))), UVModel.DeclarationStatement(declaration: UVModel.ClassDeclaration(modelPath: [1], typePath: UVModel.TypePath(components: PreviewFoundation.Inhabited<Swift.Array<UVModel.TypePath.Component>>(predicated: PreviewFoundation.Predicated<PreviewFoundation.HasHead<Swift.Array<UVModel.TypePath.Component>>>(value: [UVModel.TypePath.Component(genre: UVModel.TypeNameGenre.class, name: "AppDelegate")], proof: UVModel.TypePath.Component(genre: UVModel.TypeNameGenre.class, name: "AppDelegate")))), accessLevel: nil, attributes: ["@main"], inheritedTypes: [NSObject, NSApplicationDelegate], members: [UVModel.ConcreteTypeDeclarationMember.declaration(UVModel.VariableDeclaration(modelPath: [1].[0], name: "window", type: Optional(NSWindow!), isStatic: false, mutability: UVModel.VariableDeclaration.Mutability.mutable, value: nil, property: nil, rewriter: UVModel.SwiftSyntaxVariableDeclarationRewriter(version: 5610, nameLocation: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 12, column: 15), start: UVModel.SourceLocation.Bound(line: 12, column: 15), end: UVModel.SourceLocation.Bound(line: 12, column: 21), triviaEnd: UVModel.SourceLocation.Bound(line: 12, column: 21)), equalLocation: nil, value: nil, declLocation: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 10, column: 52), start: UVModel.SourceLocation.Bound(line: 12, column: 1), end: UVModel.SourceLocation.Bound(line: 12, column: 32), triviaEnd: UVModel.SourceLocation.Bound(line: 12, column: 32))))), UVModel.ConcreteTypeDeclarationMember.declaration(UVModel.FunctionDeclaration(modelPath: [1].[1], name: "applicationDidFinishLaunching", fullName: "applicationDidFinishLaunching(_:)", postnameDeclarationCode: "(_ aNotification: Notification)", declarationLevel: UVModel.MemberDeclarationLevel.instance, isOperator: false, isInlined: false, isMutating: false, isStatic: false, attributes: [], parameters: [UVModel.FunctionDeclaration.Parameter(externalName: UVModel.ParameterExternalName.none, name: "aNotification", type: Notification)], returnType: nil, body: UVModel.CodeBlock(modelPath: [1].[1], name: UVModel.ModelPath.Component.CollectionName.anonymous, statements: [UVModel.ExpressionStatement(expression: UVModel.InstantiationExpression(modelPath: [1].[1].[0], type: LoadSpellSlotsFile, callee: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 15, column: 68), start: UVModel.SourceLocation.Bound(line: 18, column: 2), end: UVModel.SourceLocation.Bound(line: 18, column: 20), triviaEnd: UVModel.SourceLocation.Bound(line: 18, column: 20)), arguments: [UVModel.Argument(modelPath: [1].[1].[0].arg[0], name: Optional("force"), value: UVModel.BooleanLiteralExpression(modelPath: [1].[1].[0].arg[0].value, value: true, modifiers: [], rewriter: UVModel.BasicExpressionRewriter(locationWithoutModifiers: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 18, column: 28), start: UVModel.SourceLocation.Bound(line: 18, column: 28), end: UVModel.SourceLocation.Bound(line: 18, column: 32), triviaEnd: UVModel.SourceLocation.Bound(line: 18, column: 32)), modifierLocations: [], version: 5610)), location: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 18, column: 21), start: UVModel.SourceLocation.Bound(line: 18, column: 21), end: UVModel.SourceLocation.Bound(line: 18, column: 32), triviaEnd: UVModel.SourceLocation.Bound(line: 18, column: 32)), version: 5610)], subscriptArguments: [], modifiers: [], argumentRewriter: UVModel.SwiftSyntaxFunctionCallArgumentRewriter(nodeBeforeArgumentListLocation: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 15, column: 68), start: UVModel.SourceLocation.Bound(line: 18, column: 2), end: UVModel.SourceLocation.Bound(line: 18, column: 20), triviaEnd: UVModel.SourceLocation.Bound(line: 18, column: 20)), leftDelimiterLocation: Optional(UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 18, column: 20), start: UVModel.SourceLocation.Bound(line: 18, column: 20), end: UVModel.SourceLocation.Bound(line: 18, column: 21), triviaEnd: UVModel.SourceLocation.Bound(line: 18, column: 21))), argumentLocations: [(argument: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 18, column: 21), start: UVModel.SourceLocation.Bound(line: 18, column: 21), end: UVModel.SourceLocation.Bound(line: 18, column: 32), triviaEnd: UVModel.SourceLocation.Bound(line: 18, column: 32)), expression: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 18, column: 28), start: UVModel.SourceLocation.Bound(line: 18, column: 28), end: UVModel.SourceLocation.Bound(line: 18, column: 32), triviaEnd: UVModel.SourceLocation.Bound(line: 18, column: 32)), trailingComma: nil)], rightDelimiterLocation: Optional(UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 18, column: 32), start: UVModel.SourceLocation.Bound(line: 18, column: 32), end: UVModel.SourceLocation.Bound(line: 18, column: 33), triviaEnd: UVModel.SourceLocation.Bound(line: 18, column: 33))), trailingClosureLocation: nil, version: 5610), rewriter: UVModel.InstantiationExpressionRewriter(calleeLocation: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 15, column: 68), start: UVModel.SourceLocation.Bound(line: 18, column: 2), end: UVModel.SourceLocation.Bound(line: 18, column: 20), triviaEnd: UVModel.SourceLocation.Bound(line: 18, column: 20)), calleeAndArgumentListLocation: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 15, column: 68), start: UVModel.SourceLocation.Bound(line: 18, column: 2), end: UVModel.SourceLocation.Bound(line: 18, column: 33), triviaEnd: UVModel.SourceLocation.Bound(line: 18, column: 33)), modifierLocations: [], subscriptRewriter: UVModel.SwiftSyntaxSubscriptArgumentRewriter(nodeBeforeArgumentListLocation: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 15, column: 68), start: UVModel.SourceLocation.Bound(line: 18, column: 2), end: UVModel.SourceLocation.Bound(line: 18, column: 33), triviaEnd: UVModel.SourceLocation.Bound(line: 18, column: 33)), leftDelimiterLocation: nil, argumentLocations: [], rightDelimiterLocation: nil, version: 5610), version: 5610))), UVModel.UnsupportedStatement(modelPath: [1].[1].[1], name: nil, type: Optional(""))]), rewriter: UVModel.SwiftSyntaxMemberProcedureDeclarationRewriter(version: 5610, leftBraceLocation: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 15, column: 67), start: UVModel.SourceLocation.Bound(line: 15, column: 67), end: UVModel.SourceLocation.Bound(line: 15, column: 68), triviaEnd: UVModel.SourceLocation.Bound(line: 15, column: 68)), statementLocations: [UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 15, column: 68), start: UVModel.SourceLocation.Bound(line: 18, column: 2), end: UVModel.SourceLocation.Bound(line: 18, column: 33), triviaEnd: UVModel.SourceLocation.Bound(line: 18, column: 33)), UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 18, column: 33), start: UVModel.SourceLocation.Bound(line: 21, column: 2), end: UVModel.SourceLocation.Bound(line: 26, column: 3), triviaEnd: UVModel.SourceLocation.Bound(line: 26, column: 3))], rightBraceLocation: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 26, column: 3), start: UVModel.SourceLocation.Bound(line: 27, column: 1), end: UVModel.SourceLocation.Bound(line: 27, column: 2), triviaEnd: UVModel.SourceLocation.Bound(line: 27, column: 2))), flavor: UVModel.ProceduralDeclarationFlavor.function)), UVModel.ConcreteTypeDeclarationMember.declaration(UVModel.FunctionDeclaration(modelPath: [1].[2], name: "applicationWillTerminate", fullName: "applicationWillTerminate(_:)", postnameDeclarationCode: "(_ aNotification: Notification)", declarationLevel: UVModel.MemberDeclarationLevel.instance, isOperator: false, isInlined: false, isMutating: false, isStatic: false, attributes: [], parameters: [UVModel.FunctionDeclaration.Parameter(externalName: UVModel.ParameterExternalName.none, name: "aNotification", type: Notification)], returnType: nil, body: UVModel.CodeBlock(modelPath: [1].[2], name: UVModel.ModelPath.Component.CollectionName.anonymous, statements: []), rewriter: UVModel.SwiftSyntaxMemberProcedureDeclarationRewriter(version: 5610, leftBraceLocation: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 29, column: 62), start: UVModel.SourceLocation.Bound(line: 29, column: 62), end: UVModel.SourceLocation.Bound(line: 29, column: 63), triviaEnd: UVModel.SourceLocation.Bound(line: 29, column: 63)), statementLocations: [], rightBraceLocation: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 29, column: 63), start: UVModel.SourceLocation.Bound(line: 31, column: 1), end: UVModel.SourceLocation.Bound(line: 31, column: 2), triviaEnd: UVModel.SourceLocation.Bound(line: 31, column: 2))), flavor: UVModel.ProceduralDeclarationFlavor.function))], identifierLocation: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 10, column: 6), start: UVModel.SourceLocation.Bound(line: 10, column: 6), end: UVModel.SourceLocation.Bound(line: 10, column: 17), triviaEnd: UVModel.SourceLocation.Bound(line: 10, column: 17)), location: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 7, column: 12), start: UVModel.SourceLocation.Bound(line: 9, column: 0), end: UVModel.SourceLocation.Bound(line: 34, column: 1), triviaEnd: UVModel.SourceLocation.Bound(line: 34, column: 1))))], location: UVModel.SyntaxLocation(triviaStart: UVModel.SourceLocation.Bound(line: 0, column: 0), start: UVModel.SourceLocation.Bound(line: 7, column: 0), end: UVModel.SourceLocation.Bound(line: 35, column: 0), triviaEnd: UVModel.SourceLocation.Bound(line: 35, column: 0)), previewProviderPaths: []))


Re: Typecasting variables in lldb

Laurent Daudelin
 

Thanks, I will try that

-Laurent.
-- 

On May 14, 2021, at 20:55, Jens Alfke <jens@...> wrote:


On May 12, 2021, at 2:17 PM, Laurent Daudelin <laurent@...> wrote:

I used to be able to do something like:

(lldb) po ((MyCustomDelegate *)UIApplication.shared.delegate).rootViewController

Take out the space(s). LLDB's argument parser isn’t smart, and will cut off an argument at a space even inside parens.

(I think this has always been the case.)

—Jens
_._,_._,_


Re: Typecasting variables in lldb

 


On May 12, 2021, at 2:17 PM, Laurent Daudelin <laurent@...> wrote:

I used to be able to do something like:

(lldb) po ((MyCustomDelegate *)UIApplication.shared.delegate).rootViewController

Take out the space(s). LLDB's argument parser isn’t smart, and will cut off an argument at a space even inside parens.

(I think this has always been the case.)

—Jens


Typecasting variables in lldb

Laurent Daudelin
 

I used to be able to do something like:

(lldb) po ((MyCustomDelegate *)UIApplication.shared.delegate).rootViewController

in lldb but now, when I try it, I get an error:

(lldb) po ((AppDelegateIOS *)UIApplication.shared.delegate).rootViewController
error: <EXPR>:8:19: error: expected expression after operator
((AppDelegateIOS *)UIApplication.shared.delegate).rootViewController
                  ^
 
error: <EXPR>:8:20: error: expected ',' separator

What am I missing?

-Laurent.
-- 
Laurent Daudelin   laurent@...


Re: Big Sur Terminal editing weirdness

 



On Apr 30, 2021, at 10:20 AM, dhoerl via groups.io <dhoerl@...> wrote:

Took me forever to track it down, but Terminal (at least for me) is not setting "COLUMNS", so it defaults to 80.

(Sorry to wake up this thread, but)

I just checked Terminal.app in my macOS 11.3 system, and $COLUMNS is set correctly and updates after I resize the window.
Sounds like something weird happening on your setup, maybe an obscure pref or something your shell is messing with? Best file a bug report.

—Jens


Debugging the view hierarchy on an iOS launch screen storyboard.

Alex Zavatone
 

Hi everyone. I’ve got an interesting issue where one graphic disappears on a launch screen, but only on some iOS devices.

My first tendency is to use the View Hierarchy Debugger, but if I set a breakpoint on main(), there’s nothing displayed in the View Hierarchy Debugger.

How would I go about getting the view hierarchy of the launch screen storyboard and hopefully seeing it in the View Hierarchy Debugger?

Thanks in advance,

Alex Zavatone


Re: Big Sur Terminal editing weirdness

Alex Zavatone
 

Glad that they have good QA.

On Apr 30, 2021, at 12:20 PM, dhoerl via groups.io <dhoerl=mac.com@groups.io> wrote:

I ues "vi" mode in my shell to edit command lines - but since I updated to Big Sur (or was it an M1?), sometimes when I'd edit a line the cursor would go back a line.

Took me forever to track it down, but Terminal (at least for me) is not setting "COLUMNS", so it defaults to 80.

In previous releases, the shell would get the set and updated as Terminal windows resized.

Posting this in case someone else has the same puzzling issues.

BTW my fix was to just set COLUMNS to 512 in my profile. But really...






Big Sur Terminal editing weirdness

dhoerl
 

I ues "vi" mode in my shell to edit command lines - but since I updated to Big Sur (or was it an M1?), sometimes when I'd edit a line the cursor would go back a line.

Took me forever to track it down, but Terminal (at least for me) is not setting "COLUMNS", so it defaults to 80.

In previous releases, the shell would get the set and updated as Terminal windows resized.

Posting this in case someone else has the same puzzling issues.

BTW my fix was to just set COLUMNS to 512 in my profile. But really...


Re: iOS "This app cannot be installed because its integrity could not be verified"

Alex Zavatone
 

Nothing that brand new provisioning profiles couldn’t fix.

On Apr 29, 2021, at 12:50 PM, Alex Zavatone via groups.io <zav@...> wrote:

Wondering if anyone has run into this recently on iOS.  

I made a 1 screen simple iOS app to test uploading to an internal app store for a client and that’s working fine.  When the client clicks to install the app on iOS, she gets 

“Unable to Install” 
“This app cannot be installed because its integrity could not be verified”

It looks like lots of other people have been running across this as of iOS 14.2 but I haven’t come across a clear explanation what the cause of this is.

Any insight into a possible cause?

Best,
Alex Zavatone


iOS "This app cannot be installed because its integrity could not be verified"

Alex Zavatone
 

Wondering if anyone has run into this recently on iOS.  

I made a 1 screen simple iOS app to test uploading to an internal app store for a client and that’s working fine.  When the client clicks to install the app on iOS, she gets 

“Unable to Install” 
“This app cannot be installed because its integrity could not be verified”

It looks like lots of other people have been running across this as of iOS 14.2 but I haven’t come across a clear explanation what the cause of this is.

Any insight into a possible cause?

Best,
Alex Zavatone

41 - 60 of 1432