Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Xcode 12 errors #170

Closed
wants to merge 1 commit into from
Closed

Fix Xcode 12 errors #170

wants to merge 1 commit into from

Conversation

flemingm
Copy link

ORSSerialPort.h one extra { add in last commit in - (instancetype)initWithDevice:(io_object_t)device; Line #163

Explained: ORSSerial/ORSSerialPacketDescriptor.h file not found in issue #169

defined the following in ORSSerialPort.h

// defined missing interface to fix XCODE 12.3 errors.

  • (io_object_t) deviceFromBSDPath:(NSString *)bsdPath;
  • (NSString *) bsdCalloutPathFromDevice:(io_object_t)aDevice;
  • (NSString ) modemNameFromDevice:(io_object_t)aDevice;
    /
    *
  • ORSSerialPort must be init'd using -initWithPath:
    */
  • (instancetype) init;

  • (void) reallyClosePort;

  • (void) notifyDelegateOfPosixError;

  • (void) notifyDelegateOfPosixErrorWaitingUntilDone:(BOOL)shouldWait;

  • (void) setPortOptions;

  • (void) updateModemLines;

  • (void) receiveData:(NSData *)data;

ORSSerialPort.h  one extra  { add in last commit in  - (instancetype)initWithDevice:(io_object_t)device; Line armadsen#163

Explained: ORSSerial/ORSSerialPacketDescriptor.h file not found in issue armadsen#169

defined the following in ORSSerialPort.h

// defined missing interface to fix XCODE 12.3 errors.
+ (io_object_t) deviceFromBSDPath:(NSString *)bsdPath;
+ (NSString *) bsdCalloutPathFromDevice:(io_object_t)aDevice;
+ (NSString *) modemNameFromDevice:(io_object_t)aDevice;
/**
 *  ORSSerialPort must be init'd using -initWithPath:
 */
- (instancetype) init;
- (void) reallyClosePort;

- (void) notifyDelegateOfPosixError;
- (void) notifyDelegateOfPosixErrorWaitingUntilDone:(BOOL)shouldWait;
- (void) setPortOptions;
- (void) updateModemLines;
- (void) receiveData:(NSData *)data;
@armadsen
Copy link
Owner

Thanks for this. Not using the framework is no longer officially supported, because it's complicated to correctly include framework headers from other framework headers while also supporting non-framework usage. I have fixed the build failure due to the extra brace on master. I'm going to close this, but I appreciate your contribution.

@armadsen armadsen closed this Jan 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants