-
Notifications
You must be signed in to change notification settings - Fork 18
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
Randomly can no longer compile. #34
Comments
@cpgb85 Did you recently update to Xcode 12.3 or later? Assuming Yes: The primary issue behind this new Xcode error is that the SDK Framework eventually needs to be converted from a "Fat Binary" (both Device and Simulators) for the LIB file inside the framework to an "xcframework", where device and simulator are separated. This will be a future change to the SDK , but it is not available now. Beware: For AppStoreConnect upload, with the current SDK, it is REQUIRED to remove the Simulator processors from the SDK framework that is embedded inside your app bundle. It seems that these recent changes to Xcode are trying to circumvent this by increasing the pressure on Framework creators to adopt the relatively new xcframework structure. But, in the meantime, you will need to add a RunScript or similar to remove the simulator processors inside frameworks embedded in your app bundle prior to upload. Best regards, |
This is not the issue. It's specifically this plugin that is causing me problems. It's so frustrating. And it happened randomly. |
Well, this was the only thing I was aware of that could "randomly" cause Xcode to stop building (i.e. build error) due to the print SDK framework (v3.1.10 and higher). And, it started with Xcode 12.3. And, the solution I gave is the way to fix it (at least when building exclusively with Xcode). If you wish to provide more info about the SPECIFIC error you get at build-time and the things you've tried to resolve it, then perhaps someone can help you. |
Sorry. Here is the command it tells me failed:
|
What version of Xcode do you have? It seems to be complaining about the x86_64 simulator processor slice for some reason. This should be available in the Universal Binary....at least in the latest SDK releases. Can you goto Terminal and run the "file" command on the framework lib and tell me what processors are listed? I assume your "release" configuration is set to build ALL architectures, and your "debug" configuration will only build the ACTIVE architecture only. Can you switch to Debug configuration and see if this makes a difference? It may not, since most simulators now use x86_64. But try it and let me know. |
I will give a try to what you said. I don't know if this makes a difference, I don't think it should but I am using Apple's new macbook pro with the m1 chip. |
Sorry for not giving anymore detail, but why would it be trying to launch a simulator? I don't want to launch a simulator |
Using this: #15 I added the libc++.1.tpd, libc++.tpd and libc++abi.tbd libraries. Now I receive the same error but instead of x86_64, it says the same issue with arm64. Here is the error that appears above:
|
1) What version of the SDK framework do you have? 2) Did you recently install an Xcode update on your Mac?
Xcode 12 caused a lot of issues. I've already discussed that both here and in #15. 3)
Sorry, I have no idea about Cordova development environment. I am an Xcode developer for native apps. I support the Brother iOS SDK. I am supporting this plugin out of courtesy. But, if you need help with the Cordova build system, I can't really help with that. 4) Your latest error sounds like one of the new Xcode 12 issues where arm64 is now considered both a simulator and a device processor (previously it was only a device processor, but due to the M1 now there is a simulator version too). It causes a problem typically ONLY when you build for Simulator in the Release configuration.
Anyway, please answer the questions I've asked about SDK and Xcode versions and the exact error message you are getting. Thanks, |
I'm a JavaScript developer and I am fluent in it. I typically use Vue to create web applications. When it comes to xCode, I am pretty much clueless. I have to wonder why apple thought this was a fantastic idea to make it this hard to develop applications for their platform.
On a side note, what are the chances I could convince you to make a new plugin with me? I could do the JS side and you can do the sdk side. Seeing that this one is pretty much dead. |
Thanks for the answers. I understand and feel your pain lol. So, what IDE are you actually using to build?
As for a collaboration on a new Cordova plugin that's up to date with our SDKs and "officially" supported, I'd be open to considering it. However, this is not high on my priority list right now. So, this is not likely to happen soon. For now, let's try to figure this out, because it sounds more like a build system issue than an issue with this plugin per se. Cheers, |
I actually got it! following the tips you gave in step 4, I was able to build and install my app to my development iPad and it works! Thank you for all your help! I think we should still look into either updating this plugin or creating a new one. I would I just don't know how. What sucks is that this is the only brother label printer plugin that there is. |
Awesome! So, for anyone who may stumble across this in the future with a similar problem: |
In xcode under build settings > architecture. I changed Build active architecture only from "multiple" to "Yes" |
OK. It probably said "multiple" before because it was set to YES for Debug and NO for Release. Beware that by changing this to YES for Release, your RELEASE app on the AppStore will NOT contain all device processors, it will only have the processor for the currently connected device (i.e. your iPad). This will likely be a problem for you later. Then, "Edit Scheme" so that "Run" uses the "Debug" build configuration (instead of "release"). There may still be a problem when you eventually build for release (i.e. "Archive"). The original suggestion I gave (re "Validate Workspace") might resolve this. -Rob |
What would it take for you to help me ready an app for submission to the app store? This xcode thing confuses me. |
I'd recommend that you jump into the "official" Brother Support channels. Here is a link to our Developer Program website. Sign-up is free for the most basic level. There's also a Contact Us option there where you can send an email.
-Rob |
@cpgb85 ,if your issue has been resolved, please feel free to mark this as closed please |
I can no longer compile my application with this plugin installed. Anybody else encountering this issue?
The text was updated successfully, but these errors were encountered: