1

I have imported a framework to using Xcode 9 Swift 3 The code works well as long as I build the project for simulator devices

enter image description here

However as soon as I select Gereric iOS Devices so I can Archive my project I get this error

enter image description here

Can someone please help on what I can do to fix this issue?

IMan Merzaie
  • 71
  • 1
  • 9
  • Maybe your framework is not universal framework, check this link: https://stackoverflow.com/questions/35655698/how-to-archive-an-app-that-includes-a-custom-framework/35703033#35703033 – Mu Sa Aug 12 '18 at 10:18

2 Answers2

0

Make sure to add this framework in Binary.

Go to -> Target project -> Genral -> Embeded Binary.

Hope it works!

ami rt
  • 935
  • 6
  • 11
  • I have already done that , as I said it works fine in the simulator but when I want to Archive it through iOS Gereric Device it doesn't recognise the framework – IMan Merzaie Feb 22 '18 at 09:34
0

If it is not the (possibly Framework) top-level modulemap file, ensure that the module map file is named exactly module.modulemap.

(Whereas the top-level module map for export should be named something other than module.modulemap.)

TT--
  • 2,956
  • 1
  • 27
  • 46