star-micronics / StarPRNT-SDK-iOS-Swift

StarPRNT SDK for iOS including libraries for supporting application development for Star printers.
https://www.star-m.jp/products/s_print/sdk/starprnt_sdk/manual/ios_swift/en/index.html
Other
41 stars 7 forks source link

Issues compiling StarPrint iOS SDK with Xcode 16 #28

Open randeep-ot opened 1 month ago

randeep-ot commented 1 month ago

Description

Unable to compile StarPrint iOS SDK with Xcode 16 beta 3

Error: Type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int while building module 'StarlO_Extension' imported from ...: in file included from : 1: in file included from .../StarlO_Extension.framework/Headers/StarlO_Extension.h:18:

Your development environment

Expected behavior

Able to compile with SDK

bandit-ibayashi commented 1 month ago

@randeep-ot Thank you for posting this issue. But I cannot reproduce this issue with Xcode16 Beta 3. The build was successfully.

If you continue to experience this issue, could you please provide more detailed steps and your development environment? Also, would you experience any of the reported issues with the latest version of Xcode 15?

FYI: My environment is below:

Xcode Version 16.0 beta 3 (16A5202i)

% sw_vers
ProductName: macOS
ProductVersion: 14.5
BuildVersion: 23F79

iPad Air (4th Gen.). iPadOS 17.5.1
Simulator iPhone SE 3rd Gen. 18.0

Thanks.

randeep-ot commented 1 month ago

Thanks @bandit-ibayashi. Compiling with Xcode 15.4 works fine. Attaching a sample project to replicate the issue. Its a new project created with Xcode 15.4. If you open with Xcode 16 and build, you should see the error

PStaIO-compile-issue.zip

bandit-ibayashi commented 1 month ago

@randeep-ot Thank you for your prompt reply. We will try to reproduce with this information.

justinstorm commented 1 month ago

@bandit-ibayashi any updates on this? we are running into the same issue with being unable to build in Xcode 16.

bandit-ibayashi commented 2 weeks ago

Sorry for my late reply. We are still investing this issue.

In Xcode 16 Beta 5, the project provided by @randeep-ot was still not able to build. But our StarPRNT SDK was able to do both Swift and Objective-C version. So we are investigating the factors that cause this.

Thank you for your patience.

Mordil commented 2 weeks ago

For the record, Apple has claimed on the developer forums that this is considered a bug in Xcode and they are investigating https://forums.developer.apple.com/forums/thread/759861?page=1#797390022

justinstorm commented 2 weeks ago

I can confirm that Xcode 16 Beta 6 resolved the issue for us! @Mordil @bandit-ibayashi

Mordil commented 1 week ago

I have also confirmed that Xcode 16 Beta 6 resolves this issue.

bandit-ibayashi commented 1 week ago

@Mordil @justinstorm Thank you for sharing this information and your confirmation. I have also confirmed this was fixed on its Beta 6.