<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I’m guessing a framework you’ve added wasn’t built for x86. Try switching your build target to an iOS device.<div class=""><br class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Saagar Jha<br class=""><br class=""><br class=""></div>

</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On Jul 24, 2016, at 18:25, Ryan Lovelett via swift-users &lt;<a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">When linking a Cocoa framework using the release configuration I am<br class="">getting the error below. Oddly compiling in the debug configuration<br class="">works fine.<br class=""><br class="">The code looks like this:<br class=""><br class="">let _ = URLComponents(url: track.request.url, resolvingAgainstBaseURL:<br class="">true)? .queryItems?.sorted(isOrderedBefore: { $0.name &lt; $1.name })<br class=""><br class="">Weirder still, if I make a fresh project that contains just this single<br class="">line of code then it also compiles fine (debug and release). Not sure<br class="">how to resolve the linker error. Also not sure how to get it to a small<br class="">isolated test. Xcode Version 8.0 beta 3 (8S174q)<br class=""><br class="">Suggestions?<br class=""><br class=""><blockquote type="cite" class="">Ld /Users/ryan/Library/Developer/Xcode/DerivedData/VHS-dosminuksbrtjudnsmhzbgzhsbib/Build/Products/Release/VHS.framework/Versions/A/VHS normal x86_64<br class=""> &nbsp;&nbsp;cd /Users/ryan/Source/VHS<br class=""> &nbsp;&nbsp;export MACOSX_DEPLOYMENT_TARGET=10.12<br class=""> &nbsp;&nbsp;/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -dynamiclib -isysroot /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -L/Users/ryan/Library/Developer/Xcode/DerivedData/VHS-dosminuksbrtjudnsmhzbgzhsbib/Build/Products/Release -F/Users/ryan/Library/Developer/Xcode/DerivedData/VHS-dosminuksbrtjudnsmhzbgzhsbib/Build/Products/Release -F/Users/ryan/Source/VHS/Carthage/Build/Mac -filelist /Users/ryan/Library/Developer/Xcode/DerivedData/VHS-dosminuksbrtjudnsmhzbgzhsbib/Build/Intermediates/VHS.build/Release/VHS.build/Objects-normal/x86_64/VHS.LinkFileList -install_name @rpath/VHS.framework/Versions/A/VHS -Xlinker -rpath -Xlinker @executable_path/../Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -mmacosx-version-min=10.12 -fobjc-link-runtime -L/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx -Xlinker -add_ast_path -Xlinker /Users/ryan/Library/Developer/Xcode/DerivedData/VHS-dosminuksbrtjudnsmhzbgzhsbib/Build/Intermediates/VHS.build/Release/VHS.build/Objects-normal/x86_64/VHS.swiftmodule -framework Argo -framework Curry -single_module -compatibility_version 1 -current_version 1 -Xlinker -dependency_info -Xlinker /Users/ryan/Library/Developer/Xcode/DerivedData/VHS-dosminuksbrtjudnsmhzbgzhsbib/Build/Intermediates/VHS.build/Release/VHS.build/Objects-normal/x86_64/VHS_dependency_info.dat -o /Users/ryan/Library/Developer/Xcode/DerivedData/VHS-dosminuksbrtjudnsmhzbgzhsbib/Build/Products/Release/VHS.framework/Versions/A/VHS<br class="">Undefined symbols for architecture x86_64:<br class=""> &nbsp;"Swift.UnsafeMutableBufferPointer.(subscript.materializeForSet : (Swift.Int) -&gt; A).(closure #1)", referenced from:<br class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function signature specialization &lt;Arg[2] = Exploded&gt; of generic specialization &lt;Swift.UnsafeMutableBufferPointer&lt;Foundation.URLQueryItem&gt; with Swift.UnsafeMutableBufferPointer&lt;Foundation.URLQueryItem&gt; : Swift.MutableCollection in Swift and Swift.UnsafeMutableBufferPointer&lt;Foundation.URLQueryItem&gt; : Swift.RandomAccessCollection in Swift&gt; of Swift._siftDown &lt;A where A: Swift.MutableCollection, A: Swift.RandomAccessCollection&gt; (inout A, index : A.Index, subRange : Swift.Range&lt;A.Index&gt;, isOrderedBefore : inout (A.Iterator.Element, A.Iterator.Element) -&gt; Swift.Bool) -&gt; () in VCR.o<br class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function signature specialization &lt;Arg[1] = Exploded&gt; of generic specialization &lt;Swift.UnsafeMutableBufferPointer&lt;Foundation.URLQueryItem&gt; with Swift.UnsafeMutableBufferPointer&lt;Foundation.URLQueryItem&gt; : Swift.MutableCollection in Swift and Swift.UnsafeMutableBufferPointer&lt;Foundation.URLQueryItem&gt; : Swift.RandomAccessCollection in Swift&gt; of Swift._heapSort &lt;A where A: Swift.MutableCollection, A: Swift.RandomAccessCollection&gt; (inout A, subRange : Swift.Range&lt;A.Index&gt;, isOrderedBefore : inout (A.Iterator.Element, A.Iterator.Element) -&gt; Swift.Bool) -&gt; () in VCR.o<br class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function signature specialization &lt;Arg[1] = Exploded&gt; of generic specialization &lt;Swift.UnsafeMutableBufferPointer&lt;Foundation.URLQueryItem&gt; with Swift.UnsafeMutableBufferPointer&lt;Foundation.URLQueryItem&gt; : Swift.MutableCollection in Swift and Swift.UnsafeMutableBufferPointer&lt;Foundation.URLQueryItem&gt; : Swift.RandomAccessCollection in Swift&gt; of Swift._partition &lt;A where A: Swift.MutableCollection, A: Swift.RandomAccessCollection&gt; (inout A, subRange : Swift.Range&lt;A.Index&gt;, isOrderedBefore : inout (A.Iterator.Element, A.Iterator.Element) -&gt; Swift.Bool) -&gt; A.Index in VCR.o<br class="">ld: symbol(s) not found for architecture x86_64<br class="">clang: error: linker command failed with exit code 1 (use -v to see invocation)<br class=""></blockquote><br class="">_______________________________________________<br class="">swift-users mailing list<br class=""><a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-users<br class=""></div></div></blockquote></div><br class=""></div></body></html>