Questions › Cannot build app - wrong reference for framework on a different device
Aaron Asked

My project was building on my device perfectly fine and then all of the sudden I switched to another device and it started to give me this error.

I've removed derived data, added and removed search paths to and from $(inherited) and from recursive to non-recursive, I just don't know how to source the issue. Here is a screenshot of the error I'm getting:

enter image description here

As you can see, the files exist:

enter image description here

I just don't know why switching the device prevents them from being found on build. Even if you don't have a solution, I'd appreciate any guidance to a resource where I can learn how to solve issues like these. They happen more often than not and I don't feel I have a clear enough understanding of how things link together. Can someone point me in the right direction here?

Edit: As far as my architecture configuration, here's what I have in my project's build settings:

enter image description here

Edit #2: To answer the question below about my build-only architecture, it's as follows:

enter image description here

Comments :
ishaq replied

the error says it can't find symbols for arm64 architecture, may be (this is only an assumption) it's not building for arm64, you wouldn't have seen it if you were testing with a 32bit device before.

Aaron replied

I updated my question with some information regarding my architecture configurations


1 Answers :
user1079052 answered

Go to your Project Select your Target Then, go to Build Phases Open Link Binary With Libraries Finally, just add + the framework / any other framework.

Aaron replied
Unfortunately this did not work, here is a screenshot of what I did for your proposed solution i.imgur.com/F9LdiTZ.png;
user1079052 replied
What are your build for active architecture set to? It should be yes.;
Aaron replied
I have my app target > Build Settings > "Build Active Architecture Only" set to Yes;
Aaron replied
Here is the image i.imgur.com/oDvbnCp.png;