Comments (3)
Thanks for raising this @jmarek41! I've not seen this myself but from looking at the build log, it suggests that it is trying to build xcstrings-tool (the command line tool) for iOS, which shouldn't happen because this is a macOS utility that is used at build time.
When adding the xcstrings-tool package into your project, Xcode annoyingly suggests adding xcstrings-tool as a dependency to your targets, which you need to be sure to disable, it might be that this is the issue.
Could you double check the "Target Dependencies" under the "Build Phases" of your target to make sure that xcstrings-tool or StringsCatalog are not included. There should only be a reference to XCStringsToolPlugin under the "Run Build Tool Plug-ins" section for a correct configuration 🙇
from xcstrings-tool.
No worries, I don't know why Xcode does this. I should probably add a note to the docs (#102) to make that clear.
It's also worth noting that there are actually two ways you can add the dependency:
- By adding the xcstrings-tool repo (this repo) - this is what you did
- By adding the xcstrings-tool-plugin repo - this is what the docs suggest
xcstrings-tool-plugin contains the underlying command line tool as a precompiled binary artifact, so if you didn't already have swift-syntax in your dependency graph, it will help keep your clean builds nice and fast.
Some people prefer to compile their tools from source though, so the choice is yours 👍
from xcstrings-tool.
Lol 😅. Sorry I overlooked it. Library was added as a dependency in my target. Thanks a lot for quick and helpful answer!
from xcstrings-tool.
Related Issues (20)
- Demonstrate use of language overrides in documentation HOT 3
- Feature Suggestion: Support to other build systems HOT 1
- Default values with UnsafeRawPointers do not compile HOT 4
- Ensure that snapshots compile
- Multiple commands produce generated source when working with embedded watchOS app HOT 5
- Generate.swift in the Release files look different HOT 3
- Support SwiftSyntax 5.10
- Improve SwiftUI support on iOS 15 HOT 16
- String containing a single `%` is parsed incorrectly HOT 1
- Duplicates in Localizable.xcstrings in 0.2.0 HOT 9
- Set default value to be fallback documenting comment HOT 2
- Suggestion/Question init LocalizedStringKey with .localizable.key HOT 8
- How to use with Github Actions? HOT 3
- Duplicate accessors generated in extensions on both `String` and `LocalizedStringResource`
- Support deferred formatting
- Generated @available has trailing whitespace HOT 5
- Add note to documentation about unwanted target dependencies
- Only generating constants/definitions and not localization helpers HOT 1
- Make generated struct `Hashable`
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 xcstrings-tool.