Comments (1)
Ran a bunch of tests with @lroseblade and we discovered that the problem is specific to these circumstances:
- a dependency has a generated
.modulemap
file (these are needed in the case where a C/C++ module is compiled as part of the build, as opposed to a module with a hand-written modulemap that refers to a system library.) - the package name of the project contains a space (ie the
name
property of thePackage
object in the `Package.swift file contains a space)
For example, we were able to recreate the issue by:
- creating a directory named
new test
- entering the directory and using
swift package init
to generate a simple project - adding a dependency on
Kitura-Net
oromr-agentcore
to thePackage.swif
t -- both these packages contain modules with C/C++ source code. - running
swift package generate-xcodeproj
(this createsnew test.xcodeproj
) - opening the xcodeproj in XCode
- hitting the play button to compile (this fails with an error related to the modulemap for CHTTPParser for Kitura-Net, or agentcore for omr-agentcore)
However, when we specified just CCurl
as a dependency the build succeeded. The CCurl
package contains a hand-written modulemap for a system installed library rather than having C/C++ source code (where the modulemap gets generated during the build) like the failing case.
In the XCode error we can see in the build output the value in an -fmodule-map-file
option contains an unescaped space in the path to the generated module map. The directory name new test
is correctly escaped but the name of the xcode project (new test.xcodeproj
) directory is not.
As mentioned in the description, the failure only occurs when building in XCode. Building with swift build
or even xcodebuild
does not show a problem.
from generator-swiftserver.
Related Issues (20)
- Please consider an alternative directory structure HOT 2
- Update docker commands in generated README
- SDKgen tests are failing HOT 1
- IBM Cloud Auto-Scaling service fails to initialize HOT 2
- Default URL for redis service doesn't use the standard redis port
- init option handles hyphen in project name incorrectly HOT 1
- Failing with Swift 4.0.3 HOT 4
- Version 10 of node.js has been released
- unsure which node6.x Node.js 8.x Node.js 10 version will work ? HOT 2
- Update generator to use Codable
- An in-range update of debug is breaking the build 🚨 HOT 4
- Codable routes not generated from example swagger HOT 1
- Generator should support Swift 4.2
- An in-range update of bluebird is breaking the build 🚨 HOT 3
- Kitura Create doesn't work with node 12 HOT 2
- bluemix-simple-http-client-swift 0.9.0 doesn't support swift 5 HOT 2
- An in-range update of generator-ibm-usecase-enablement is breaking the build 🚨 HOT 3
- An in-range update of handlebars is breaking the build 🚨 HOT 18
- An in-range update of codecov is breaking the build 🚨 HOT 3
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 generator-swiftserver.