Med Abida
Med Abida

Reputation: 1222

Xcode, No such Module

Im getting the No such Module each time i try to build/build for testing the project on my iMac, but when i run the exact same project (project is on iCloud drive) in my Macbook pro everything seems to be working perfectly.

Both computers are on macOS high sierra

Both Xcode are 9.0.1

My Podfile:

platform :ios, '10.0'

target '___' do
        use_frameworks!
        pod 'Socket.IO-Client-Swift', '~> 12.0.0'
        pod 'SkyFloatingLabelTextField'
        pod 'SwAlert'
        pod 'RealmSwift'
        pod 'ESTabBarController-swift'
end

i've tried:

  1. deintegrating the project using pod deintegrate
  2. add the frameworks to the linked frameworks and libraries tab
  3. deleting the derived data folder
  4. updating all pods
  5. moved the project to a folder on the machine (not in icloud drive)
  6. removing and reinstalling Xcode
  7. setting the search path to $(SRCROOT)

with further investigations i've found that the derived data folder is missing all *.framework files for my pods so i've copied the derived data folder from my macbook pro (working properly) and move it to the imac, to the surprise it seems to be fixed the No such Module error but a new error is showing up missing required modules: 'SSCZLib', 'SSCommonCrypto'

How Can i fix it ? PS: im using the .xcworkspace file

Upvotes: 1

Views: 9084

Answers (1)

Med Abida
Med Abida

Reputation: 1222

I solved the problem by building my pods-projectname file separately

  1. edit scheme
  2. choose build from the list on the left
  3. add pods-projectname
  4. press close and then build for testing the pods-projectname file.

Upvotes: 6

Related Questions