-
Notifications
You must be signed in to change notification settings - Fork 121
Failed to inject Xib files #72
Comments
It thinks that that file is not a directory for some reason. it seems that this is not working now.) |
I don't know how to fix it! Can you help me? |
For you to understand :) Even if I do, there's still big chance that it will not work correctly ) Xib's are pretty hard to inject (not all parts will work there) |
Thank you for your answer, I will try to fix it. |
Do you have test project which are you trying to work with? |
@qq237761250 It's more After installation this file is in your home directiory |
I'll according to your solution to try to solve.In the computers of the company I can correct injection xib.After work I go back to check it. |
I'll according to your solution to try to solve.In the computers of the company I can correct injection xib.After work I go back to check it. |
Dyci was correct inject xib when I was recreate the test project. |
Maybe you can rewrite starting from line number 80 like this: # Non-Localizable Resouerces..
if source[-4:] == ".nib":
shutil.copy(source, bundlePath + "/" + source)
stdout.write("Nib : File " + source + " was successfully copied to application -> " + bundlePath)
elif not os.path.isdir(source):
shutil.copy(source, bundlePath)
stdout.write("NF : File " + source + " was successfully copied to application -> " + bundlePath)
else:
copytree(source, bundlePath + "/" + os.path.split(source)[1])
stdout.write("ND : File " + source + " was successfully copied to application -> " + bundlePath) |
I can inject .m files,but I can's inject .xib files.The following is the error information.How to fix it?
Traceback (most recent call last):
File "/Users/guangxikatsurahayashishouzanku/.dyci/scripts/dyci-recompile.py", line 125, in
resultCode = copyResource(xibFilename, DYCI_ROOT_DIR)
File "/Users/guangxikatsurahayashishouzanku/.dyci/scripts/dyci-recompile.py", line 82, in copyResource
shutil.copy(source, bundlePath)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 119, in copy
copyfile(src, dst)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 83, in copyfile
with open(dst, 'wb') as fdst:
IOError: [Errno 21] Is a directory: '/Users/guangxikatsurahayashishouzanku/Library/Developer/CoreSimulator/Devices/59909BFB-FD4C-412F-B04F-79C1A396F7DB/data/Containers/Bundle/Application/49287987-1933-40D8-8433-79F54AD402A8/test-40-AutoLayout.app/Demo1ViewController.nib'
The text was updated successfully, but these errors were encountered: