{"action":"opened","issue":{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/4384","labels_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/4384/labels{/name}","comments_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/4384/comments","events_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/4384/events","html_url":"https://github.com/CocoaPods/CocoaPods/issues/4384","id":111296166,"number":4384,"title":"Test target linker issue with use of @testable","user":{"login":"soleares","id":494198,"avatar_url":"https://avatars.githubusercontent.com/u/494198?v=3","gravatar_id":"","url":"https://api.github.com/users/soleares","html_url":"https://github.com/soleares","followers_url":"https://api.github.com/users/soleares/followers","following_url":"https://api.github.com/users/soleares/following{/other_user}","gists_url":"https://api.github.com/users/soleares/gists{/gist_id}","starred_url":"https://api.github.com/users/soleares/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soleares/subscriptions","organizations_url":"https://api.github.com/users/soleares/orgs","repos_url":"https://api.github.com/users/soleares/repos","events_url":"https://api.github.com/users/soleares/events{/privacy}","received_events_url":"https://api.github.com/users/soleares/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-14T00:03:04Z","updated_at":"2015-10-14T00:03:04Z","closed_at":null,"body":"I'm getting the following error when building my test target:\r\n`ld: framework not found Fabric for architecture x86_64`\r\n\r\nHere's a simplified version of my Podfile:\r\n```\r\nsource 'https://github.com/CocoaPods/Specs.git'\r\nplatform :ios, '8.0'\r\n\r\nuse_frameworks!\r\ninhibit_all_warnings!\r\n\r\npod 'AFNetworking'\r\npod 'AWSCore'\r\npod 'AWSS3'\r\npod 'Bolts'\r\npod 'Crashlytics'\r\npod 'Fabric'\r\npod 'Firebase'\r\n\r\ntarget 'MyProjectTests', :exclusive => true do\r\n  pod 'FBSnapshotTestCase'\r\nend\r\n```\r\n\r\nThis happens when I have a test case that imports my main target's module\r\n```\r\n@testable import MyProject\r\n\r\nclass MyTestCase: XCTestCase {\r\n    func testSomething() {\r\n        XCTAssertTrue(true)\r\n    }\r\n}\r\n```\r\n\r\nI can resolve this by either:\r\n\r\nAdding `pod 'Fabric'` to the test target in the pod file:\r\n```\r\nsource 'https://github.com/CocoaPods/Specs.git'\r\nplatform :ios, '8.0'\r\n\r\nuse_frameworks!\r\ninhibit_all_warnings!\r\n\r\npod 'AFNetworking'\r\npod 'AWSCore'\r\npod 'AWSS3'\r\npod 'Bolts'\r\npod 'Crashlytics'\r\npod 'Fabric'\r\npod 'Firebase'\r\n\r\ntarget 'MyProjectTests', :exclusive => true do\r\n  pod 'Fabric'\r\n  pod 'FBSnapshotTestCase'\r\nend\r\n```\r\nor by adding the following manually to MyProjectTests.debug.xcconfig:\r\n```\r\nFRAMEWORK_SEARCH_PATHS = $(inherited) \"${PODS_ROOT}/Fabric\"\r\n```\r\n\r\nI've noticed that all of my other pod can be @import'ed in my test case, except for Crashlytics and Fabric.\r\n\r\nI'm using the latest version of Cocoapods 0.39 and the latest Fabric / Crashlytics versions.\r\n\r\nIs this a podspec issue?"}}