{"action":"created","issue":{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/5659","repository_url":"https://api.github.com/repos/CocoaPods/CocoaPods","labels_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/5659/labels{/name}","comments_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/5659/comments","events_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/5659/events","html_url":"https://github.com/CocoaPods/CocoaPods/issues/5659","id":167052341,"number":5659,"title":"Inclusion of Submodule within Unit Test Target; Fails to Run","user":{"login":"cody1024d","id":5884708,"avatar_url":"https://avatars.githubusercontent.com/u/5884708?v=3","gravatar_id":"","url":"https://api.github.com/users/cody1024d","html_url":"https://github.com/cody1024d","followers_url":"https://api.github.com/users/cody1024d/followers","following_url":"https://api.github.com/users/cody1024d/following{/other_user}","gists_url":"https://api.github.com/users/cody1024d/gists{/gist_id}","starred_url":"https://api.github.com/users/cody1024d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cody1024d/subscriptions","organizations_url":"https://api.github.com/users/cody1024d/orgs","repos_url":"https://api.github.com/users/cody1024d/repos","events_url":"https://api.github.com/users/cody1024d/events{/privacy}","received_events_url":"https://api.github.com/users/cody1024d/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/labels/s1:awaiting%20input","name":"s1:awaiting input","color":"EDCE24"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-07-22T14:03:43Z","updated_at":"2016-07-22T17:52:13Z","closed_at":null,"body":"🌈\r\n\r\n* [x] I've read and understood the [*CONTRIBUTING guidelines and have done my best effort to follow](https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md).\r\n\r\n# Report\r\n\r\n## What did you do?\r\n\r\nI have a library project, entitled, for the sake of this, `Core`.  It contains various classes/structs/etc. that are used across multiple apps.  For this example, let's say I am specifically discussing app `Foo`.\r\n\r\nIn order to help keep the code base DRY, I have created a submodule in `Core` that provides mock implementations of protocols (let's call this submodule `Core_WithMocks`, for unit testing purposes within `Foo`.\r\n\r\nMy podfile is set up, so that the `Core` pod (defaulting to a submodule that does NOT contain the mocks) is propagated to both `Foo` and `FooTests`.  And the `Core_WithMocks` pod is only contained within the `FooTests` target.\r\n\r\nThe code base compiles fine, but during testing, it throws errors.\r\n\r\n## What did you expect to happen?\r\n\r\nRun unit tests successfully\r\n\r\n## What happened instead?\r\n\r\nThe following error gets thrown, while testing (but before any tests are run):\r\n\r\n```\r\n2016-07-22 08:49:11.416 Foo[25206:14560422] Failed to load test bundle from file:///Users/cduncan/Library/Developer/Xcode/DerivedData/Foo-ehhbqlzaxeahwlecrufpbufkukdg/Build/Products/Debug-iphonesimulator/Foo.app/PlugIns/FooTests.xctest/../FooTests.xctest/: Error Domain=NSCocoaErrorDomain Code=3588 \"dlopen(/Users/cduncan/Library/Developer/Xcode/DerivedData/Foo-ehhbqlzaxeahwlecrufpbufkukdg/Build/Products/Debug-iphonesimulator/Foo.app/PlugIns/FooTests.xctest/FooTests, 265): Symbol not found: __TWPC15mobile_ios_core11MockStorage11SugarRecord7StorageS_\r\n  Referenced from: /Users/cduncan/Library/Developer/Xcode/DerivedData/Foo-ehhbqlzaxeahwlecrufpbufkukdg/Build/Products/Debug-iphonesimulator/Foo.app/PlugIns/FooTests.xctest/FooTests\r\n  Expected in: /Users/cduncan/Library/Developer/CoreSimulator/Devices/04CE0CC3-EAD6-4029-9794-649CF92E9EDA/data/Containers/Bundle/Application/F9920F82-52A9-4081-A826-9EA315603695/Foo.app/Frameworks/mobile_ios_core.framework/mobile_ios_core\r\n in /Users/cduncan/Library/Developer/Xcode/DerivedData/Foo-ehhbqlzaxeahwlecrufpbufkukdg/Build/Products/Debug-iphonesimulator/Foo.app/PlugIns/FooTests.xctest/FooTests\" \r\n```\r\n\r\n## CocoaPods Environment\r\n\r\n\r\n### Stack\r\n\r\n```\r\n   CocoaPods : 1.0.1\r\n        Ruby : ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin15]\r\n    RubyGems : 2.0.14.1\r\n        Host : Mac OS X 10.11.4 (15E65)\r\n       Xcode : 7.3.1 (7D1014)\r\n         Git : git version 2.7.4 (Apple Git-66)\r\nRuby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib\r\nRepositories : bitbucket-mobile-ios-core - https://bitbucket.org/cduncan/mobile-ios-core.git @ 272ec8a80299e6c8b90903a72c60fd55b39a3f84\r\n               master - https://github.com/CocoaPods/Specs.git @ 78be5a6803f90c51768f468d1f494a081c5b063e\r\n               mobile-ios-core - https://bitbucket.org/cduncan/mobile-ios-core.git @ 3a9cd029fa20d1d02d02e39a0d7bace7d612e13f\r\n```\r\n\r\n### Installation Source\r\n\r\n```\r\nExecutable Path: /usr/local/bin/pod\r\n```\r\n\r\n### Plugins\r\n\r\n```\r\ncocoapods-deintegrate : 1.0.0\r\ncocoapods-plugins     : 1.0.0\r\ncocoapods-search      : 1.0.0\r\ncocoapods-stats       : 1.0.0\r\ncocoapods-trunk       : 1.0.0\r\ncocoapods-try         : 1.0.0\r\n```\r\n\r\n### Podfile\r\n\r\n```ruby\r\nplatform :ios, '8.0'\r\nuse_frameworks!\r\n\r\n\r\nsource 'https://github.com/CocoaPods/Specs.git'\r\nsource 'https://bitbucket.org/cduncan/mobile-ios-core.git'\r\n\r\n# this pod is for core development purposes\r\n pod 'mobile-ios-core', :path => \"../mobile-ios-3core/\"\r\n\r\n# this pod is the online copy, use it for when you're not developing the core\r\n#  pod 'mobile-ios-core', \"~> 3.0.1\"\r\n\r\n  target 'Foo' do\r\n  end\r\n  \r\n  target 'FooTests' do\r\n      # this pod is for core development purposes\r\n       pod 'mobile-ios-core/WithMocks', :path => \"../mobile-ios-3core/\"\r\n\r\n      # this pod is the online copy, use it for when you're not developing the core\r\n#      pod 'mobile-ios-core/WithMocks', \"~> 3.0.1\"\r\n  end\r\n\r\n#pre_install do |installer|\r\n#    def installer.verify_no_static_framework_transitive_dependencies; end\r\n#end\r\n\r\npost_install do |installer|\r\n\r\n    # This fix for certain pods including non-module headers\r\n    installer.pods_project.build_configuration_list.build_configurations.each do |configuration|\r\n        configuration.build_settings['CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES'] = 'YES'\r\n    end\r\n\r\n    installer.pods_project.targets.each do |target|\r\n        target.build_configurations.each do |config|\r\n            config.build_settings['EXPANDED_CODE_SIGN_IDENTITY'] = \"\"\r\n            config.build_settings['CODE_SIGNING_REQUIRED'] = \"NO\"\r\n            config.build_settings['CODE_SIGNING_ALLOWED'] = \"NO\"\r\n            config.build_settings['ENABLE_BITCODE'] = \"NO\"\r\n        end\r\n    end\r\n\r\nend\r\n```\r\n\r\n\r\n## Project that demonstrates the issue\r\n\r\nI can create one, if this is necessary, but unfortunately this problem is occurring in software that is closed-source.\r\n"},"comment":{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/comments/234610949","html_url":"https://github.com/CocoaPods/CocoaPods/issues/5659#issuecomment-234610949","issue_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/5659","id":234610949,"user":{"login":"cody1024d","id":5884708,"avatar_url":"https://avatars.githubusercontent.com/u/5884708?v=3","gravatar_id":"","url":"https://api.github.com/users/cody1024d","html_url":"https://github.com/cody1024d","followers_url":"https://api.github.com/users/cody1024d/followers","following_url":"https://api.github.com/users/cody1024d/following{/other_user}","gists_url":"https://api.github.com/users/cody1024d/gists{/gist_id}","starred_url":"https://api.github.com/users/cody1024d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cody1024d/subscriptions","organizations_url":"https://api.github.com/users/cody1024d/orgs","repos_url":"https://api.github.com/users/cody1024d/repos","events_url":"https://api.github.com/users/cody1024d/events{/privacy}","received_events_url":"https://api.github.com/users/cody1024d/received_events","type":"User","site_admin":false},"created_at":"2016-07-22T17:52:13Z","updated_at":"2016-07-22T17:52:13Z","body":"Ok, makes sense!  Let me investigate with the 1.1.0, just for information's sake, and I'll respond here (although I probably won't be able to do it until later today or Monday).  I consider my question solved, though, so whatever you'd like to do with this issue, is good by me :)\r\n\r\nThanks for hte help @neonichu "}}
{"actor":{"display_login":"cody1024d"}}