tuist / XcodeProj

📝 Read, update and write your Xcode projects

Home Page:https://xcodeproj.tuist.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot load module 'xcodeproj' as 'XcodeProj'

fenglh opened this issue · comments

commented

hi !

Context 🕵️‍♀️

import Foundation
import PathKit
import XcodeProj

class XcodeprojManager:NSObject {
    //
    func test(){
        let path = Path("/path/to/my/Project.xcodeproj") // Your project path
        let xcodeproj = XcodeProj(path: path)
        NSLog("111");
    }
}

then, i get the error "Cannot load module 'xcodeproj' as 'XcodeProj'"

in the podfile :

  pod 'xcodeproj', '~> 7.9.0' ##Read/Modify/Write your Xcode projects