I have a project named 'MyProject'. I added a framework to the project named 'MyFramework'. I use the Realm cocoapod within MyFramework. I linked Realm.framework to MyFramework under the General tab. I also copied the Realm.framework to the MyFramework bundle under the 'Copy Bundle Resources' tab.
When I try to build MyProject I receive the error: "error: /Users/me/Library/Developer/Xcode/DerivedData/MyProject-abc/Build/Products/Debug-iphonesimulator/Realm.framework: No such file or directory".
When I check the 'MyProject.abc' directory I see the Realm.Framework saved at 'Debug-iphonesimulator/Realm/Realm.framework' folder and not 'Debug-iphonesimulator/Realm.framework' as expected in the error. Any suggestions? FYI, a command named 'CpResource' is being executed which leads to the error. I'm not sure how to set where 'CpResource' looks for the Realm.framework.