Touchpose icon indicating copy to clipboard operation
Touchpose copied to clipboard

Swift Compiler

Open dwsolberg opened this issue 8 years ago • 3 comments

main.swift doesn't work on Xcode 8.2 (on January 19, 2017), unless I change to this:

UIApplicationMain(CommandLine.argc, UnsafeMutableRawPointer(CommandLine.unsafeArgv) .bindMemory(to: UnsafeMutablePointer<Int8>.self, capacity: Int(CommandLine.argc)), NSStringFromClass(QTouchposeApplication.self), NSStringFromClass(AppDelegate.self))

Also, the instructions would be better if they mentioned that "QTouchposeApplication.h" should be added to the user's Swift bridging header file.

dwsolberg avatar Jan 29 '17 20:01 dwsolberg

Thanks for this!

DAKarp avatar Feb 06 '17 17:02 DAKarp

Thanks, this worked for me as well!

Afinque avatar Jun 09 '17 02:06 Afinque

for some more clarification, not positive we need the UnsafeMutableRawPointer any more with xCode 11.x it appears to work fine without it, but let me know if one finds a problem with it, see below:

should include a Bridging header :OculigamiPaint-Bridging-Header.h in the app, with this line in it:#import "QTouchposeApplication.h"

main.swift can look like this then:

import UIKit

UIApplicationMain( CommandLine.argc, CommandLine.unsafeArgv, NSStringFromClass(QTouchposeApplication.self), NSStringFromClass(AppDelegate.self) //...... replace with the name of your delegate if different )

jonkai avatar Aug 30 '20 22:08 jonkai