Skip to content

UITests missing 📦 Embed Pods Frameworks build phase in 1.0.0.rc.1 #5250

@programmerdave

Description

@programmerdave

Report

What did you do?

I created a new project, added a podfile and added the Nimble pod to the UITest target.

What did you expected to happen?

I expected the UITest to build and run and expected that the 📦 Embed Pods Frameworks build phase exists for the UITest.

What happened instead?

Instead the 📦 Embed Pods Frameworks build phase is missing and I get the error:

2016-05-04 12:06:11.998 XCTRunner[72780:2546682] Running tests...
2016-05-04 12:06:12.005 XCTRunner[72780:2546682] The bundle “CocoaPodsUITestBugUITests” couldn’t be loaded because it is damaged or missing necessary resources. Try reinstalling the bundle.
2016-05-04 12:06:12.005 XCTRunner[72780:2546682] (dlopen_preflight(/Users/dave/Library/Developer/Xcode/DerivedData/CocoaPodsUITestBug-ewaeojhdwdsmcegfrnbpgfiuhtsc/Build/Products/Debug-iphonesimulator/CocoaPodsUITestBugUITests-Runner.app/PlugIns/CocoaPodsUITestBugUITests.xctest/CocoaPodsUITestBugUITests): Library not loaded: @rpath/Nimble.framework/Nimble
  Referenced from: /Users/dave/Library/Developer/Xcode/DerivedData/CocoaPodsUITestBug-ewaeojhdwdsmcegfrnbpgfiuhtsc/Build/Products/Debug-iphonesimulator/CocoaPodsUITestBugUITests-Runner.app/PlugIns/CocoaPodsUITestBugUITests.xctest/CocoaPodsUITestBugUITests
  Reason: image not found)

Podfile

platform :ios, '8.0'
use_frameworks!

def shared_testing_pods
  pod 'Nimble', '~> 4.0.0'
end

abstract_target "CocoaPodsUITestBugTargets" do
  pod 'Raygun4iOS', '~> 2.2.0'
  pod 'Alamofire', '~> 3.3.0'
  pod 'PromiseKit', :git => 'git@github.com:mxcl/PromiseKit.git'
  pod 'SwiftyJSON', '~> 2.3.2'

  target 'CocoaPodsUITestBug'

  target 'CocoaPodsUITestBugTests' do
    shared_testing_pods
  end
end

target 'CocoaPodsUITestBugUITests' do
  shared_testing_pods
end

I've attached an example project. All the other tests build correctly except for UITests. When I add the build phase manually, it works.

CocoaPodsUITestBug.zip

Metadata

Metadata

Assignees

Labels

d1:easyAn easy ticket that is a good start for first-time contributorss3:detailedIssues with in-depth explanations and examples that make it easier to troubleshoott2:defectThese are known bugs. The issue should also contain steps to reproduce. PRs welcome!

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions