jbsf / blindside

Blindside provides dependency injection capabilities for Objective-C on iOS and OS X
MIT License
71 stars 43 forks source link

Integration issues when used in a framework with cocoapods 1.2.1 #58

Open aaa-ace opened 7 years ago

aaa-ace commented 7 years ago

When installing Blindside 1.3.1 in my framework using cocapods 1.2.1 and then attempting to integrate my framework in the application, I get the following error:

dyld: Library not loaded: @rpath/Blindside.framework/Blindside
  Referenced from: /Users/tsd036/Library/Developer/CoreSimulator/Devices/13CB5F22-8253-4D2B-A5DE-350D4C50271D/data/Containers/Bundle/Application/27786704-461A-4687-A211-BEF96D83D4DE/aaa-ace-mobile.app/Frameworks/MyFramework.framework/MyFramework
  Reason: image not found

This only started happening when I upgraded to cocoapods 1.2.1 because in cocoapods 1.1.1 it allowed "use_frameworks!" to be embeded inside our swift testing target for Quick and Nimble. Cocoapods 1.2.1 requires "use_frameworks!" to also be included in the parent target which is the framework.