{"action":"created","issue":{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/5110","repository_url":"https://api.github.com/repos/CocoaPods/CocoaPods","labels_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/5110/labels{/name}","comments_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/5110/comments","events_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/5110/events","html_url":"https://github.com/CocoaPods/CocoaPods/issues/5110","id":145212906,"number":5110,"title":"1.0.0.beta.6 with XCode 7.3 UI Test issue","user":{"login":"KonradFalkowski-asideas","id":6874366,"avatar_url":"https://avatars.githubusercontent.com/u/6874366?v=3","gravatar_id":"","url":"https://api.github.com/users/KonradFalkowski-asideas","html_url":"https://github.com/KonradFalkowski-asideas","followers_url":"https://api.github.com/users/KonradFalkowski-asideas/followers","following_url":"https://api.github.com/users/KonradFalkowski-asideas/following{/other_user}","gists_url":"https://api.github.com/users/KonradFalkowski-asideas/gists{/gist_id}","starred_url":"https://api.github.com/users/KonradFalkowski-asideas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KonradFalkowski-asideas/subscriptions","organizations_url":"https://api.github.com/users/KonradFalkowski-asideas/orgs","repos_url":"https://api.github.com/users/KonradFalkowski-asideas/repos","events_url":"https://api.github.com/users/KonradFalkowski-asideas/events{/privacy}","received_events_url":"https://api.github.com/users/KonradFalkowski-asideas/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2016-04-01T15:40:30Z","updated_at":"2016-05-04T15:56:29Z","closed_at":"2016-05-01T16:51:25Z","body":"I'm using cocoapods version 1.0.0.beta.6. Have App with four targets:\r\n1. Target - main target with deployment target 8.0\r\n2. TargetTests - target for unit tests (Host application: Target)\r\n3. TargetUI - a copy of Target just to separate unit tests from UI tests, with deployment target 9.0\r\n4. TargetUITests - target for UI tests (Host application: TargetUI)\r\n\r\n\r\n\r\nWith Podfile:\r\n=============\r\n\r\n```\r\nsource 'https://github.com/CocoaPods/Specs.git'\r\n\r\nuse_frameworks!\r\ninhibit_all_warnings!\r\n\r\ndef common_pods\r\n    pod 'XX1'\r\n    pod 'XX2'\r\n    pod 'XX3'\r\nend\r\n\r\ntarget 'Target' do\r\n\tplatform :ios, '8.0'\r\n\tcommon_pods\r\nend\r\n\r\ntarget 'TargetUI' do\r\n    platform :ios, '9.0'\r\n    common_pods\r\n    pod 'XX4'\r\n    pod 'XX5'\r\nend\r\n```\r\n\r\nWhere:\r\n===========\r\nXX5 - pods for UI test purposes with XCTest import within, require iOS 9+\r\nXX4 - pods for UI test purposes require iOS 9+\r\nXX3..XX1 - standard pods \r\n\r\nAll targets build with success. Unit tests works correctly. The problem appears when UI Testing:\r\n\r\n\r\nError:\r\n=====\r\n\r\n> dyld: Library not loaded: @rpath/XCTest.framework/XCTest\r\n>   Referenced from: /Users/.../Frameworks/XX5.framework/XX5\r\n>   Reason: image not found\r\n\r\n  \r\n  \r\nWhat I've found so far is XCTests should not be imported beyond Tests. So I've changed the Podfile to separate XX5 pod with XCTest import to separate target:\r\n\r\nWith Podfile:\r\n\r\n```\r\nsource 'https://github.com/CocoaPods/Specs.git'\r\n\r\nuse_frameworks!\r\ninhibit_all_warnings!\r\n\r\ndef common_pods\r\n    pod 'XX1'\r\n    pod 'XX2'\r\n    pod 'XX3'\r\nend\r\n\r\ntarget 'Target' do\r\n\tplatform :ios, '8.0'\r\n\tcommon_pods\r\nend\r\n\r\ntarget 'TargetUI' do\r\n    platform :ios, '9.0'\r\n    common_pods\r\n    pod 'XX4'\r\nend\r\n\r\n\r\ntarget 'TargetUITests' do\r\n    platform :ios, '9.0'    \r\n    pod 'XX5'\r\nend\r\n```\r\n\r\n\r\nAll targets build with success. Unit tests works correctly. The problem appears when UI Testing:\r\n\r\nError:\r\n======\r\n\r\n> Test target TargetUITests encountered an error (Early unexpected exit, operation never finished bootstrapping - no restart will be attempted)\r\n\r\n\r\nSummary:\r\n========\r\nUI Tests works ONLY when target 'TargetUITests' is not defined separately with pods. Empty 'TargetUITests' makes it working!"},"comment":{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/comments/216910882","html_url":"https://github.com/CocoaPods/CocoaPods/issues/5110#issuecomment-216910882","issue_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/5110","id":216910882,"user":{"login":"programmerdave","id":806404,"avatar_url":"https://avatars.githubusercontent.com/u/806404?v=3","gravatar_id":"","url":"https://api.github.com/users/programmerdave","html_url":"https://github.com/programmerdave","followers_url":"https://api.github.com/users/programmerdave/followers","following_url":"https://api.github.com/users/programmerdave/following{/other_user}","gists_url":"https://api.github.com/users/programmerdave/gists{/gist_id}","starred_url":"https://api.github.com/users/programmerdave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/programmerdave/subscriptions","organizations_url":"https://api.github.com/users/programmerdave/orgs","repos_url":"https://api.github.com/users/programmerdave/repos","events_url":"https://api.github.com/users/programmerdave/events{/privacy}","received_events_url":"https://api.github.com/users/programmerdave/received_events","type":"User","site_admin":false},"created_at":"2016-05-04T15:56:28Z","updated_at":"2016-05-04T15:56:28Z","body":"@neonichu This is still a problem with UITest targets. The \"Embed Pods Frameworks\" doesn't get included in the build phases. If I put it in manually, it works. Any idea where this left off on? This should be reopened as it's still affecting 1.0.0.rc.1"}}