尝试设置ReactNative项目,但安装CocoaPods变得困难

时间:2019-11-15 18:18:03

标签: ruby xcode react-native cocoapods

当我尝试使用此import pandas as pd import pickle import numpy as np import multiprocessing from 'function file' import function file = 'file_name' PKL_paths = 'path' D = pd.read_pickle(PKL_paths + file) S = range(0,361, 45) if __name__ == '__main__': a = multiprocessing.Process(target=function, args=(S[0], S[1], 1)) b = multiprocessing.Process(target=function, args=(S[1], S[2], 2)) c = multiprocessing.Process(target=function, args=(S[2], S[3], 3)) d = multiprocessing.Process(target=function, args=(S[3], S[4], 4)) e = multiprocessing.Process(target=function, args=(S[4], S[5], 5)) f = multiprocessing.Process(target=function, args=(S[5], S[6], 6)) g = multiprocessing.Process(target=function, args=(S[6], S[7], 7)) h = multiprocessing.Process(target=function, args=(S[7], S[8], 8)) i = multiprocessing.Process(target=function, args=(S[0], S[1], 1)) j = multiprocessing.Process(target=function, args=(S[1], S[2], 2)) k = multiprocessing.Process(target=function, args=(S[2], S[3], 3)) l = multiprocessing.Process(target=function, args=(S[3], S[4], 4)) m = multiprocessing.Process(target=function, args=(S[4], S[5], 5)) n = multiprocessing.Process(target=function, args=(S[5], S[6], 6)) o = multiprocessing.Process(target=function, args=(S[6], S[7], 7)) p = multiprocessing.Process(target=function, args=(S[7], S[8], 8)) a.start() b.start() c.start() d.start() e.start() f.start() g.start() h.start() i.start() j.start() k.start() l.start() m.start() n.start() o.start() p.start() a.join() b.join() c.join() d.join() e.join() f.join() g.join() h.join() i.join() j.join() k.join() l.join() m.join() n.join() o.join() p.join() print(a) 命令并出现以下错误时,无法安装Cocoapods。 (MacOS Mojave 10.14.4)

npx react-native init ProjectName

请帮助了解正在发生的事情以及如何解决此问题。

1 个答案:

答案 0 :(得分:0)

感谢您的答复,但事实证明我的macOS ruby​​ / gems没有更新。我更新了所有必需的内容,并按照相同的步骤进行操作,现在一切正常。