Comments (6)
Thanks for raising this @mikeger
Taking a look at the Wire-iOS project it seems the product name is set via build settings in the xcconfig files.
XcodeProj only parses the xcodeproj / pbxpoj files and allows reading and setting the values there (e.g. https://github.com/wireapp/wire-ios/blob/62fb71d1d648689b3cfbab4af8db730ddb3e2bf2/wire-ios-canvas/WireCanvas.xcodeproj/project.pbxproj#L268).
Resolving build settings is a slightly more involved process and can can differ by configuration which is slightly outside the scope of the XcodeProj library :/
xcrun xcodebuild -showBuildSettings \
-scheme SchemeName
-workspace WorkspaceName.xcworkspace \
-config Debug | grep PRODUCT_NAME
from xcodeproj.
@kwridan thanks so much for the reply. This sounds reasonable, adding support for xcconfig
resolution might be too big of a feature for a GitHub issue :)
Would it make sense to enhance the documentation for productNameWithExtension()
(any other?) method so people using it would have reasonable expectations? I can propose a small change for this if you think this is appropriate.
from xcodeproj.
Sure that sounds like a reasonable change, this contribution would be welcome! thanks @mikeger
from xcodeproj.
@kwridan I created the PR, thanks for your support.
from xcodeproj.
Hola 👋,
We want to inform you that the issue has been marked as stale. This means that there hasn't been any activity or updates on it for quite some time, and it's possible that it may no longer be relevant or actionable.
If you still believe that this issue is valid and requires attention, please provide an update or any additional information that can help us address it. Otherwise, we may consider closing it in the near future.
Thank you for your understanding.
from xcodeproj.
Hola 👋,
We want to inform you that we have decided to close this stale issue as there hasn't been any activity or response regarding it after marking it as stale.
We understand that circumstances may have changed or priorities may have shifted, and that's completely understandable. If you still believe that this issue needs to be addressed, please feel free to reopen it and provide any necessary updates or additional information.
We appreciate your understanding and look forward to your continued contributions to the project.
Thank you.
from xcodeproj.
Related Issues (20)
- Having issues cleanly removing a local swift package dependency HOT 3
- Add an option to get the String representation of PBXProj
- Creating a new release HOT 2
- How to find the active scheme of a project/workspace HOT 2
- Create PBXProj from Data Representation HOT 1
- deleted
- Cannot remove remotePackage HOT 2
- Release 8.15.1 not published HOT 2
- Error during package resolving
- Cannot find 'Glibc' in scope on Mac HOT 2
- Adopt Mise for automation
- Set up continuous release in this repository
- Add documentation
- error: (DecodingError) keyNotFound(CodingKeys(stringValue: "compatibilityVersion", […]), […])) HOT 2
- Add support for Xcode 16's `PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet`
- Set up continuous releasing
- API breaking changes in minor release 8.23.0
- XcodeGen: error: ambiguous use of 'arc4random_uniform' on Linux distros
- Swift Command-line Tool `executableTarget` HOT 1
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 xcodeproj.