Post not yet marked as solved
Can't get a server bot to clone any repository in GitHub or Bitbucket. It seems like it needs access to credentials that are there when the bots are setup but have not made it into the server's user or something. Almost as if I need to setup .ssh for whatever user runs the bots?
Points I can think of:
Xcode 13
I've tried public and private repos
local accounts have access just fine, just not the one the bot runs on.
Accounts in Xcode on both the machines are setup, but that's not the xcodeserver user.
I've had this working before before these services forced you to personal access tokens.
For the integration user I've tried accounts that have full access to these repositories.
As a test I added a post integration trigger to try to clone it manually. That works fine.
Post not yet marked as solved
I think I'm not getting it. How do you copy the code? I can't select more than one line, and when I copy that line I can't past it into Xcode. If I right click on the whole block and choose copy, I can't paste that anywhere either.
I managed to select the ColorsContentView struct, and I copied it. Here's what I was finally able to get: https://developer.apple.com/wwdc21/10176
i.e., not the code.
Post not yet marked as solved
Basically I've tried to wrap it using UIViewControllerRepresentable, and in doing that I have to specify what to share in the makeUIViewController method, which is called only once the first time the entire view is rendered. After that only calls to updateUIViewController are provided, and there is no way to update the data in the UIActivityViewController.Here's how I wrapped it:struct SwiftUIActivityView: UIViewControllerRepresentable, Identifiable {
var id = UUID()
@Binding var text: String
func makeUIViewController(context: Context) -> UIActivityViewController {
print("*** makeUIViewController: \(id) ***")
let result = UIActivityViewController(activityItems: [text], applicationActivities: nil)
result.completionWithItemsHandler = { (activityType, completed, returnedItems, error) in
if completed {
print("*** completed ***")
} else {
print("*** not completed ***")
}
}
return result
}
func updateUIViewController(_ uiViewController: UIActivityViewController, context: Context) {
}
}Here's how I used it (in a sheet). This method tried to force a reallocation of my wrapper everytime in hopes that would flesh things out, but it didn't. The code:struct WrappedUIActivityView: View {
@State private var message = "a message"
@State private var sheetToShow: SwiftUIActivityView?
var body: some View {
VStack {
TextField("what to share", text: $message)
Button("Share") {
self.sheetToShow = SwiftUIActivityView(text: self.$message)
}
Spacer()
}
.padding()
.sheet(item: $sheetToShow) { something in
self.sheetToShow
}
}
}Using UIActivityItemSource (god I wish that pasting in this field didn't move the cursor to the top left) or UIActivityItemProvider makes no difference. If anything, they are worse since the placeholders don't show.The only thing that works is to put all this in a NavigationView, get the view above pushed on the stack, then hitting the back button and tapping again. That gets another one time use of the sheet.This is using Xcode labled as beta 7 on the developer portal but that shows beta 6 in its about box -- 11M392rBreaks the major feature in the dirt simple app I was converting over if it can't share. :-(
Post not yet marked as solved
So I made sure everything was up-to-date, cleared caches, rebooted, etc., but the Xcode 10.2 beta crashes. An abort because it thinks I'm not running on a Mac?Process: Xcode [345]
Path: /Applications/Xcode-beta.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 10.2 (14490.87.2)
Build Info: IDEFrameworks-14490087002000000~23
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Xcode [345]
User ID: 501
Date/Time: 2019-01-25 08:19:48.497 -0500
OS Version: Mac OS X 10.14.3 (18D42)
Report Version: 12
Anonymous UUID: ED194AC4-596B-E927-5E4C-E3EAD903B324
Time Awake Since Boot: 43 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Application Specific Information:
ProductBuildVersion: 10P82s
ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/DVTFrameworks/DVTFrameworks-14490.68.3/DVTFoundation/DeveloperStructure/DVTPlatform.m:502
Details: The macOS platform is missing - cannot set a default platform. Platform folders = (
“<dvtfilepath:0x7fa823e40f10:‘ applications="" xcode-beta.app="" contents="" developer="" platforms’="">”
). Registered platforms = (
“<dvtplatform:0x7fa823d28ce0:‘com.apple.platform.iphonesimulator’:<dvtfilepath:0x7fa823d28e70:‘ applications="" xcode-beta.app="" contents="" developer="" platforms="" iphonesimulator.platform’="">>“,
“<dvtplatform:0x7fa823d85290:‘com.apple.platform.iphoneos’:<dvtfilepath:0x7fa823d65df0:‘ applications="" xcode-beta.app="" contents="" developer="" platforms="" iphoneos.platform’="">>”
)
Object:
Method: +loadAllPlatformsReturningError:
Thread: {number = 1, name = main}
Hints:
Backtrace:
0 -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in IDEKit)
1 _DVTAssertionHandler (in DVTFoundation)
2 _DVTAssertionFailureHandler (in DVTFoundation)
3 __46+[DVTPlatform loadAllPlatformsReturningError:]_block_invoke (in DVTFoundation)
4 _dispatch_client_callout (in libdispatch.dylib)
5 _dispatch_once_callout (in libdispatch.dylib)
6 +[DVTPlatform loadAllPlatformsReturningError:] (in DVTFoundation)
7 IDEInitialize (in IDEFoundation)
8 -[IDEApplicationController applicationWillFinishLaunching:] (in IDEKit)
9 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ (in CoreFoundation)
10 ___CFXRegistrationPost_block_invoke (in CoreFoundation)
11 _CFXRegistrationPost (in CoreFoundation)
12 ___CFXNotificationPost_block_invoke (in CoreFoundation)
13 -[_CFXNotificationRegistrar find:object:observer:enumerator:] (in CoreFoundation)
14 _CFXNotificationPost (in CoreFoundation)
15 -[NSNotificationCenter postNotificationName:object:userInfo:] (in Foundation)
16 -[NSNotificationCenter(DVTNSNotificationCenterAdditions) _dvt_postNotificationName:object:userInfo:] (in DVTFoundation)
17 -[NSApplication finishLaunching] (in AppKit)
18 -[DVTApplication finishLaunching] (in DVTKit)
19 -[NSApplication run] (in AppKit)
20 NSApplicationMain (in AppKit)
21 main (in Xcode)
22 start (in libdyld.dylib)
abort() called
Application Specific Signatures:
((void *)0) != macosxPlatform
Post not yet marked as solved
I laid out a pretty large tile map node in the normal way for the U.S. Left to right, top to bottom, and found out there is too much space vertically. Too many rows. If I change the map size, it removes rows from the top and not the bottom! Like that Google Cheesebuger with the cheese on the bottom, it makes sense in a different culture, but not ours. So how can I move everything down 10 rows, or remove rows from the bottom, or something else so I can reduce the map size and clip the scene to just the right amount of vertical space?