0
votes

Following the tutorial here I was told to add the following Frameworks to my Project

  • AVFoundation.framework
  • CoreData.framework
  • CoreLocation.framework
  • CoreText.framework
  • GLKit.framework
  • ImageIO.framework
  • libc++.dylib
  • libicucore.dylib
  • libz.dylib
  • OpenGLES.framework
  • QuartzCore.framework
  • SystemConfiguration.framework

Now I decided to make a brand new project, so I proceeded to do the same thing...

I added the frameworks, they show up in the framework folder like this but the Pods file looks different:

So in one of my projects I added the frameworks and my Linking settings looked like this:

enter image description here

And the other looks like this:

enter image description here

And the same goes for the Pod File in the Frameworks Folder:

enter image description here enter image description here[4]

I did nothing differently. Why might this happen. Now I get the following error because of this, and can't fix it !!

enter image description here

Any ideas? It works in one project, but not in the other

1
could you please check the build architecture ? It's in the Build Settings for both the Project and the Target for both projects. - StefanS
Standard Architectures (armv7, arm64) , but this shouldn't be the issue, because both projects have the same architecture, yet the project builds on one of them - Greg Peckory
how about the linker flags, from the images you posted they are different. - StefanS
Exactly, I figured that I could add the @inherited to the linker flags,... this solved a lot of my problems. Now I get the error -bundle_loader can only be used with -bundle and this error happens when the Mach-O Type is set to either executable or bundle - Greg Peckory
please double check and clean your project. also use capital "B" for Bundle - StefanS

1 Answers

0
votes

Check your linker flags, then clean your project, try to delete your Scheme and regenerate it automatically and then delete your app from the simulator and build it.