Worth a read for some more context.
Create the file in the root of the project (where your Package.swift file lives as well), and use the following contents:
/// Package.xcconfig| import SwiftUI | |
| class KeyboardAvoidingHostingController<Content>: UIHostingController<Content> where Content: View { | |
| override func viewDidAppear(_ animated: Bool) { | |
| super.viewDidAppear(animated) | |
| NotificationCenter.default.addObserver(self, selector: #selector(keyboardWillChangeFrame), name: UIResponder.keyboardWillChangeFrameNotification, object: nil) | |
| } | |
| override func viewDidDisappear(_ animated: Bool) { | |
| super.viewDidDisappear(animated) | 
| // | |
| // ContentView.swift | |
| // DeleteMe | |
| // | |
| // Created by Chris Eidhof on 02.02.21. | |
| // | |
| import SwiftUI | |
| /* | 
| // | |
| // UIViewWrapper.swift | |
| // lingq-5 | |
| // | |
| // Created by Timothy Costa on 2019/06/14. | |
| // Copyright © 2019 timothycosta.com. All rights reserved. | |
| // | |
| import SwiftUI | |
| import UIKit | 
Worth a read for some more context.
Create the file in the root of the project (where your Package.swift file lives as well), and use the following contents:
/// Package.xcconfig(Gopher image by Ashley McNamara)
| class API { | |
| static let apiKey = "test" | |
| static let baseUrl = "" | |
| enum Endpoint { | |
| case login | |
| case register | |
| var endpoint: String { | |
| switch self { | 
| NOTIFY / HTTP/1.1 | |
| HOST: 192.168.1.116:3500 | |
| CONNECTION: close | |
| CONTENT-TYPE: text/xml | |
| CONTENT-LENGTH: 1146 | |
| NT: upnp:event | |
| NTS: upnp:propchange | |
| SID: uuid:RINCON_000xxxxxxxx01400_sub0000003246 | |
| SEQ: 0 | 
| SUBSCRIBE /MediaRenderer/GroupRenderingControl/Event HTTP/1.1 | |
| TIMEOUT: Second-600 | |
| CALLBACK: <http://192.168.1.116:3500/> | |
| NT: upnp:event | |
| Host: 192.168.1.154:1400 | |
| Connection: close | |
| Content-Length: 0 | |
LLDB comes with a great set of commands for powerful debugging.
Your starting point for anything. Type help to get a list of all commands, plus any user installed ones. Type 'help  for more information on a command. Type help   to get help for a specific option in a command too.
| # Warning: BUILD_DIRECTORY must be an absolute path for this script to work properly | |
| rm -rf $BUILD_DIRECTORY | |
| ARCHIVE_PATH=$BUILD_DIRECTORY/$TARGET.xcarchive | |
| IPA_PATH=$BUILD_DIRECTORY/$TARGET.ipa | |
| xcodebuild -workspace $WORKSPACE -scheme $SCHEME -derivedDataPath $BUILD_DIRECTORY -archivePath $ARCHIVE_PATH archive | |
| # As xcodebuild -exportArchive doesn't seem to work properly with WatchKit apps, I ended up making the IPA file by hand. | |
| # https://devforums.apple.com/message/1120211#1120211 has some information about doing that. |