{"action":"created","issue":{"url":"https://api.github.com/repos/Carthage/Carthage/issues/1394","repository_url":"https://api.github.com/repos/Carthage/Carthage","labels_url":"https://api.github.com/repos/Carthage/Carthage/issues/1394/labels{/name}","comments_url":"https://api.github.com/repos/Carthage/Carthage/issues/1394/comments","events_url":"https://api.github.com/repos/Carthage/Carthage/issues/1394/events","html_url":"https://github.com/Carthage/Carthage/issues/1394","id":166408464,"number":1394,"title":"Xcode 8b3: ABI Mismatch when copying Swift dylibs","user":{"login":"maxmeyers","id":344174,"avatar_url":"https://avatars.githubusercontent.com/u/344174?v=3","gravatar_id":"","url":"https://api.github.com/users/maxmeyers","html_url":"https://github.com/maxmeyers","followers_url":"https://api.github.com/users/maxmeyers/followers","following_url":"https://api.github.com/users/maxmeyers/following{/other_user}","gists_url":"https://api.github.com/users/maxmeyers/gists{/gist_id}","starred_url":"https://api.github.com/users/maxmeyers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxmeyers/subscriptions","organizations_url":"https://api.github.com/users/maxmeyers/orgs","repos_url":"https://api.github.com/users/maxmeyers/repos","events_url":"https://api.github.com/users/maxmeyers/events{/privacy}","received_events_url":"https://api.github.com/users/maxmeyers/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Carthage/Carthage/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":24,"created_at":"2016-07-19T19:00:27Z","updated_at":"2016-08-11T18:49:52Z","closed_at":null,"body":"* `carthage version`: 0.17.2\r\n* `xcodebuild -version`: Xcode 8.0 Build version 8S174q\r\n* Are you using `--no-build`? No\r\n* Are you using `--no-use-binaries`? No\r\n* Are you using `--use-submodules`? No\r\n\r\n**Cartfile**\r\n```\r\ngithub \"SnapKit/SnapKit\" ~> 0.21.1\r\n```\r\n\r\n**Carthage Output**\r\n```\r\nmaxmeyers$ carthage bootstrap  --platform iOS\r\n*** Checking out SnapKit at \"0.21.1\"\r\n*** xcodebuild output can be found in /var/folders/cq/tf_7hrzn5015g_2k0x_d8_2r0000gn/T/carthage-xcodebuild.gUBI2r.log\r\n*** Building scheme \"SnapKit iOS\" in SnapKit.xcworkspace\r\n```\r\n\r\nDuring the `CopySwiftLibs` build phase, I see the following output. It results in the `Frameworks` folder being empty (except `SnapKit.framework`, of course).\r\n\r\n```\r\nEffective Swift version: { arm64: 3; armv7: 3; i386: 3; x86_64: 3 }\r\nFound library with mismatched Swift ABI: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/Swift_2.3.xctoolchain/usr/lib/swift/iphonesimulator/libswiftCore.dylib { i386: 3; x86_64: 3 }\r\nFound library with mismatched Swift ABI: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/libswiftCore.dylib { i386: 4; x86_64: 4 }\r\nFound library with mismatched Swift ABI: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/Swift_2.3.xctoolchain/usr/lib/swift/iphonesimulator/libswiftCoreGraphics.dylib { i386: 3; x86_64: 3 }\r\nFound library with mismatched Swift ABI: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/libswiftCoreGraphics.dylib { i386: 4; x86_64: 4 }\r\nFound library with mismatched Swift ABI: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/Swift_2.3.xctoolchain/usr/lib/swift/iphonesimulator/libswiftCoreImage.dylib { i386: 3; x86_64: 3 }\r\nFound library with mismatched Swift ABI: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/libswiftCoreImage.dylib { i386: 4; x86_64: 4 }\r\nFound library with mismatched Swift ABI: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/Swift_2.3.xctoolchain/usr/lib/swift/iphonesimulator/libswiftDarwin.dylib { i386: 3; x86_64: 3 }\r\nFound library with mismatched Swift ABI: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/libswiftDarwin.dylib { i386: 4; x86_64: 4 }\r\nFound library with mismatched Swift ABI: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/Swift_2.3.xctoolchain/usr/lib/swift/iphonesimulator/libswiftDispatch.dylib { i386: 3; x86_64: 3 }\r\nFound library with mismatched Swift ABI: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/libswiftDispatch.dylib { i386: 4; x86_64: 4 }\r\nFound library with mismatched Swift ABI: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/Swift_2.3.xctoolchain/usr/lib/swift/iphonesimulator/libswiftFoundation.dylib { i386: 3; x86_64: 3 }\r\nFound library with mismatched Swift ABI: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/libswiftFoundation.dylib { i386: 4; x86_64: 4 }\r\nFound library with mismatched Swift ABI: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/Swift_2.3.xctoolchain/usr/lib/swift/iphonesimulator/libswiftObjectiveC.dylib { i386: 3; x86_64: 3 }\r\nFound library with mismatched Swift ABI: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/libswiftObjectiveC.dylib { i386: 4; x86_64: 4 }\r\nFound library with mismatched Swift ABI: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/Swift_2.3.xctoolchain/usr/lib/swift/iphonesimulator/libswiftUIKit.dylib { i386: 3; x86_64: 3 }\r\nFound library with mismatched Swift ABI: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/libswiftUIKit.dylib { i386: 4; x86_64: 4 }\r\n```\r\n\r\nIt seems like it's looking for Swift dylibs with all four architectures and can't find one. When I remove `SnapKit.framework` from the linked libraries, I get the following (correct) result:\r\n\r\n```\r\nEffective Swift version: { i386: 3; x86_64: 3 }\r\nCopying /Applications/Xcode-beta.app/Contents/Developer/Toolchains/Swift_2.3.xctoolchain/usr/lib/swift/iphonesimulator/libswiftCore.dylib to /Users/maxmeyers/Library/Developer/Xcode/DerivedData/Swiftlibsd-haqjpklvwdwfqpgsxftryqpmovqr/Build/Products/Debug-iphonesimulator/Swiftlibsd.app/Frameworks/libswiftCore.dylib\r\n  /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip '/Applications/Xcode-beta.app/Contents/Developer/Toolchains/Swift_2.3.xctoolchain/usr/lib/swift/iphonesimulator/libswiftCore.dylib' '-r' '-o' '/Users/maxmeyers/Library/Developer/Xcode/DerivedData/Swiftlibsd-haqjpklvwdwfqpgsxftryqpmovqr/Build/Products/Debug-iphonesimulator/Swiftlibsd.app/Frameworks/libswiftCore.dylib'\r\n...\r\n```\r\n\r\nI have the `ONLY_ACTIVE_ARCH` flag set to `YES` (this is a debug build).\r\n\r\nI'm not sure what the solution is, and perhaps this is just a bug with Beta 3.\r\n\r\nHere's a sample project that reproduces the issue:\r\n~~[Swiftlibsd.zip](https://github.com/Carthage/Carthage/files/372233/Swiftlibsd.zip)~~\r\n\r\nHere's the corrected example:\r\n[Swiftlibsd.zip](https://github.com/Carthage/Carthage/files/374079/Swiftlibsd.zip)\r\n"},"comment":{"url":"https://api.github.com/repos/Carthage/Carthage/issues/comments/239254954","html_url":"https://github.com/Carthage/Carthage/issues/1394#issuecomment-239254954","issue_url":"https://api.github.com/repos/Carthage/Carthage/issues/1394","id":239254954,"user":{"login":"ffittschen","id":7734806,"avatar_url":"https://avatars.githubusercontent.com/u/7734806?v=3","gravatar_id":"","url":"https://api.github.com/users/ffittschen","html_url":"https://github.com/ffittschen","followers_url":"https://api.github.com/users/ffittschen/followers","following_url":"https://api.github.com/users/ffittschen/following{/other_user}","gists_url":"https://api.github.com/users/ffittschen/gists{/gist_id}","starred_url":"https://api.github.com/users/ffittschen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ffittschen/subscriptions","organizations_url":"https://api.github.com/users/ffittschen/orgs","repos_url":"https://api.github.com/users/ffittschen/repos","events_url":"https://api.github.com/users/ffittschen/events{/privacy}","received_events_url":"https://api.github.com/users/ffittschen/received_events","type":"User","site_admin":false},"created_at":"2016-08-11T18:49:51Z","updated_at":"2016-08-11T18:49:51Z","body":"@chandlerhuff I can't confirm that. I'm using Xcode 8b5 and I exactly followed the mentioned Readme section, but I still get the error `dyld: Library not loaded: @rpath/libswiftCoreLocation.dylib`"}}
{"actor":{"display_login":"ffittschen"}}