Comments (11)
@Deadpikle I'm working on a version of the script to build for Catalyst at the moment : https://github.com/ipsosante/Apple-Boost-BuildScript/tree/catalyst
I'm don't think the problems are the same for arm64 macOS, but maybe that'll help.
I have no intention to get a DTK so I won't be able to test building for Apple Silicon Macs, but I can take a look anyway (I should be able to build it fine, I just won't be able to use the framework myself).
Edit: I can make an xcframework with just arm64. I wonder if we could just do it separately and jam 'em together at the end by manually updating the Info.plist...
Absolutely! I you can get a build of boost for arm64 linking the macOS SDK, you should be able to just patch it into the xcframework and get things to work (that's what the script is supposed to do 😊)
from apple-boost-buildscript.
Not that I know of. I haven't tried it, but I do have Catalyst support in my list of stuff to do for the project I use this scrip for. I have no idea when that will happen though. I've got half a mind to just click the button and try it out for funsies, but there's nothing in the immediate future AFAIK.
Looking at this SO question, it seems that we would need to add a new target type for it to work with Catalyst.
from apple-boost-buildscript.
There's also this one:
https://stackoverflow.com/a/58703723/580850
Which suggests:
xcodebuild -configuration "Debug" ARCHS="x86_64h" -destination 'platform=macOS,variant=Mac Catalyst' -project "MyApp.xcodeproj"
and the other one there to build into a framework:
xcodebuild archive -project "$FRAMEWORK".xcodeproj -scheme "$FRAMEWORK" \
-destination 'platform=macOS,arch=x86_64,variant=Mac Catalyst' \
-archivePath "$FRAMEWORK"MC.xcarchive SKIP_INSTALL=NO clean
strangely, the second doesn't include the "h" in "x86_64h"
I tried hacking these in, but only made a mess of it.
from apple-boost-buildscript.
Not to be annoying, but any thoughts here? At WWDC yesterday, Apple is clearly making Catalyst a full Mac citizen, and I'd love to be able to try out my product.
from apple-boost-buildscript.
Oops, sorry - I got caught up with stuff & forgot about this. I'll make this a priority & get something figured out.
I agree, clearly Catalyst needs to be supported here. We'll also need to add support or Apple Silicon (hopefully I get a DTK!)
from apple-boost-buildscript.
I added support to create a .xcframework a few months ago on my fork. I'll try to get a PR set up to upstream those changes.
from apple-boost-buildscript.
Hmmm, wanted to chime in here that I'm having issues getting an Apple Silicon xcframework build to work. I've been trying to get it to build arm64
with x86_64
(by tweaking what --universal
attempts to create), but the creation of the xcframework gives the error: Both macos-x86_64 and macos-arm64 represent two equivalent library definitions.
Not sure if anyone has any ideas. The builds themselves seem to go OK (I can lipo -archs
the .a
files and it says arm64
), but I can't get the xcframework to create. Does this somehow have to go to a different "destination" ? (see https://help.apple.com/xcode/mac/11.0/#/dev544efab96 and -destination
flag for the archive
call.)
For the record, I have the same problem if I use the normal --universal
flag that tries to create i386
with x86_64
. The only hint I have found on this is a random comment in a pull request for Firebase: https://github.com/firebase/firebase-ios-sdk/pull/4737/files#diff-ae87db694a268f93c6029c8b91a3b9edR334
Didn't want to make a new issue since Apple Silicon was already mentioned here along with the .xcframework building. Can always do so if wanted.
Edit: I can make an xcframework with just arm64. I wonder if we could just do it separately and jam 'em together at the end by manually updating the Info.plist...
from apple-boost-buildscript.
FWIW - I do plan on getting a DTK, so if I actually get one this is one of the things I'm definitely going to make work (if someone else hasn't already gotten it there before then).
from apple-boost-buildscript.
I do have one, and as soon as the script can generate a catalyst-compatible xcframework, I'm happy to test trial versions out.
from apple-boost-buildscript.
@Deadpikle I'm working on a version of the script to build for Catalyst at the moment : https://github.com/ipsosante/Apple-Boost-BuildScript/tree/catalyst
I'm don't think the problems are the same for arm64 macOS, but maybe that'll help.I have no intention to get a DTK so I won't be able to test building for Apple Silicon Macs, but I can take a look anyway (I should be able to build it fine, I just won't be able to use the framework myself).
I think this is helpful, thanks. I think I am building things incorrectly, which is why I'm getting the error when I try to create the xcframework. I'll have to report back with findings (if I have any worth sharing 🤣). I don't have a DTK to test, but I can at least try building!
Just an FYI for anyone else that tries this: Once you've got the Xcode 12 beta, you can make sure it is being used for console commands by running sudo /usr/bin/xcode-select -switch /Applications/Xcode-beta.app/Contents/Developer
on the console.
from apple-boost-buildscript.
Thank you!
from apple-boost-buildscript.
Related Issues (20)
- Xcode 11.4 unknown argument: '-fcoalesce-templates' HOT 3
- Accepting pull requests? HOT 2
- Boost filesystem directory_iterator problem on iOS? HOT 24
- Universal binaries with more than one arch for macOS fail on creating xcframework HOT 3
- Using xcframework in Ccode HOT 1
- Universal Boost dynamic libraries (Intel arch and Apple Silicon arch) HOT 2
- Ignoring building Boost.Locale for iOS HOT 2
- license HOT 1
- Boost Context iOS HOT 1
- Collaborator(s) HOT 3
- Getting error: "have the same architectures (arm64) and can't be in the same fat output file" HOT 9
- How to build boost python with python3
- *.xcframework is not working in iOS project HOT 2
- Boost built and ready for iOS/macOS (repo) HOT 2
- Not clear how to pass array to --boost-libs or --ios-archs HOT 6
- Building boost 1.80.0 with BCP (thinning)
- XCFramework missing boost/asio/ssl.hpp
- Unable to build boost: Error staging iPhone. HOT 1
- Fatal Error when I run the script on an M1 Mac
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apple-boost-buildscript.