[swift-users] Swift Build issue

zaid kazi zaid2kazi at gmail.com
Mon Apr 3 21:43:01 CDT 2017


Hi, Im curently trying to use swift package manager to install the library
Stencil the project builds fine in xcode and i can run it. Although when
trying to install Stencial via package manager it complains that some of
the existing sources I have cannot find the module libxml2 although they
are linked and work fine in xcode.


Please help !
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20170403/42e3bc48/attachment.html>
-------------- next part --------------
MacBook-Pro:XCUI-ReportGen zaid$ swift build -Xcc -fblocks -Xswiftc -I/usr/local/include -Xlinker -L/usr/local/lib
Fetching https://github.com/kylef/Stencil.git
Fetching https://github.com/kylef/PathKit.git
Fetching https://github.com/kylef/Spectre.git
Cloning https://github.com/kylef/Spectre.git
Resolving https://github.com/kylef/Spectre.git at 0.7.2
Cloning https://github.com/kylef/Stencil.git
Resolving https://github.com/kylef/Stencil.git at 0.8.0
Cloning https://github.com/kylef/PathKit.git
Resolving https://github.com/kylef/PathKit.git at 0.8.0
Compile Swift Module 'Spectre' (8 sources)
Compile Swift Module 'PathKit' (1 sources)
Compile Swift Module 'Stencil' (19 sources)
/Users/zaid/XCUI-ReportGen/.build/checkouts/Stencil.git-7635584243355970173/Sources/Context.swift:46:25: warning: expression implicitly coerced from 'Any?' to Any
    return dictionaries.popLast()
                        ^~~~~~~
/Users/zaid/XCUI-ReportGen/.build/checkouts/Stencil.git-7635584243355970173/Sources/Context.swift:46:25: note: provide a default value to avoid this warning
    return dictionaries.popLast()
                        ^~~~~~~
                                ?? <#default value#>
/Users/zaid/XCUI-ReportGen/.build/checkouts/Stencil.git-7635584243355970173/Sources/Context.swift:46:25: note: force-unwrap the value to avoid this warning
    return dictionaries.popLast()
                        ^~~~~~~
                               !
/Users/zaid/XCUI-ReportGen/.build/checkouts/Stencil.git-7635584243355970173/Sources/Context.swift:46:25: note: explicitly cast to Any with 'as Any' to silence this warning
    return dictionaries.popLast()
                        ^~~~~~~
                                as Any
/Users/zaid/XCUI-ReportGen/.build/checkouts/Stencil.git-7635584243355970173/Sources/Loader.swift:55:14: warning: no calls to throwing functions occur within 'try' expression
      return try environment.templateClass.init(templateString: content, environment: environment, name: name)
             ^
/Users/zaid/XCUI-ReportGen/.build/checkouts/Stencil.git-7635584243355970173/Sources/Loader.swift:68:18: warning: no calls to throwing functions occur within 'try' expression
          return try environment.templateClass.init(templateString: content, environment: environment, name: templateName)
                 ^
Compile Swift Module 'XCUIReportGenerator' (13 sources)
/Users/zaid/XCUI-ReportGen/XCUIReportGenerator/ExternalLibs/Fuzi/Document.swift:23:8: error: no such module 'libxml2'
import libxml2
       ^
/Users/zaid/XCUI-ReportGen/XCUIReportGenerator/ExternalLibs/Fuzi/Document.swift:23:8: error: no such module 'libxml2'
import libxml2
       ^
/Users/zaid/XCUI-ReportGen/XCUIReportGenerator/ExternalLibs/Fuzi/Document.swift:23:8: error: no such module 'libxml2'
import libxml2
       ^
/Users/zaid/XCUI-ReportGen/XCUIReportGenerator/ExternalLibs/Fuzi/Document.swift:23:8: error: no such module 'libxml2'
import libxml2
       ^
/Users/zaid/XCUI-ReportGen/XCUIReportGenerator/ExternalLibs/Fuzi/Document.swift:23:8: error: no such module 'libxml2'
import libxml2
       ^
/Users/zaid/XCUI-ReportGen/XCUIReportGenerator/ExternalLibs/Fuzi/Document.swift:23:8: error: no such module 'libxml2'
import libxml2
       ^
/Users/zaid/XCUI-ReportGen/XCUIReportGenerator/ExternalLibs/Fuzi/Document.swift:23:8: error: no such module 'libxml2'
import libxml2
       ^
/Users/zaid/XCUI-ReportGen/XCUIReportGenerator/ExternalLibs/Fuzi/Document.swift:23:8: error: no such module 'libxml2'
import libxml2
       ^
<unknown>:0: error: build had 1 command failures
error: exit(1): /Applications/Xcode8.3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-build-tool -f /Users/zaid/XCUI-ReportGen/.build/debug.yaml
-------------- next part --------------
A non-text attachment was scrubbed...
Name: debug.yaml
Type: application/octet-stream
Size: 33945 bytes
Desc: not available
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20170403/42e3bc48/attachment.obj>


More information about the swift-users mailing list