Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

插件运行崩溃 #14

Closed
CrazyZombies opened this issue Jul 15, 2015 · 2 comments
Closed

插件运行崩溃 #14

CrazyZombies opened this issue Jul 15, 2015 · 2 comments

Comments

@CrazyZombies
Copy link

操作步骤:

  • 插件安装成功;
  • 按照 Usage 描述 Build / Run 模拟器;

按照步骤测试了两个比较大的项目,其中一个运行 10 次,大概有八九次会溃崩,但偶尔会成功;另一个没有成功过。两个崩溃的 log 有点不太一样。

偶尔成功项目的 LOG

/bin/cp /Users/MicroCai/Library/Application Support/Developer/Shared/Xcode/Plug-ins/KSHObjcUML.xcplugin/Contents/Resources/ObjcUML.zip /Users/MicroCai/Open Source/ProjectName



/usr/bin/unzip -o -d /Users/MicroCai/Open Source/ProjectName /Users/MicroCai/Open Source/ProjectName/ObjcUML.zip

Archive:  /Users/MicroCai/Open Source/ProjectName/ObjcUML.zip
  inflating: /Users/MicroCai/Open Source/ProjectName/ObjcUML/dependency.css  
  inflating: /Users/MicroCai/Open Source/ProjectName/ObjcUML/index.html  
  inflating: /Users/MicroCai/Open Source/ProjectName/ObjcUML/script.rb  
  inflating: /Users/MicroCai/Open Source/ProjectName/ObjcUML/Scripts/d3.v3.js  
  inflating: /Users/MicroCai/Open Source/ProjectName/ObjcUML/Scripts/d3.v3.min.js  
  inflating: /Users/MicroCai/Open Source/ProjectName/ObjcUML/Scripts/d3js-LICENSE  
  inflating: /Users/MicroCai/Open Source/ProjectName/ObjcUML/Scripts/parse.js  


/bin/rm -rf /Users/MicroCai/Open Source/ProjectName/ObjcUML.zip



/Users/MicroCai/Open Source/ProjectName/ObjcUML/script.rb -s "ProjectName" -t /Users/MicroCai/Open Source/ProjectName/ObjcUML/origin.js

find: /Users/MicroCai/Library/Caches/appCode*/DerivedData: No such file or directory
There were 188 directories found
Last modifications were in
/Users/MicroCai/Library/Developer/Xcode/DerivedData/ProjectName-gqwmwntvbcisfaeavdmjpgtoedqv/Build/IntermediatesProjectName.build/DebugTestEnv-iphonesimulator/ProjectName.build/Objects-normal/x86_64
directory at
2015-07-15 10:33:53 +0800

没有成功过的 LOG:

/bin/cp /Users/MicroCai/Library/Application Support/Developer/Shared/Xcode/Plug-ins/KSHObjcUML.xcplugin/Contents/Resources/ObjcUML.zip /Users/MicroCai/Open Source/ProjectName



/usr/bin/unzip -o -d /Users/MicroCai/Open Source/ProjectName/Users/MicroCai/Open Source/ProjectName/ObjcUML.zip


Archive:  /Users/MicroCai/Open Source/ProjectName/ObjcUML.zip
  inflating: /Users/MicroCai/Open Source/ProjectName/ObjcUML/dependency.css  
  inflating: /Users/MicroCai/Open Source/ProjectName/ObjcUML/index.html  
  inflating: /Users/MicroCai/Open Source/ProjectName/ObjcUML/script.rb  
  inflating: /Users/MicroCai/Open Source/ProjectName/ObjcUML/Scripts/d3.v3.js  
  inflating: /Users/MicroCai/Open Source/ProjectName/ObjcUML/Scripts/d3.v3.min.js  
  inflating: /Users/MicroCai/Open Source/ProjectName/ObjcUML/Scripts/d3js-LICENSE  
  inflating: /Users/MicroCai/Open Source/ProjectName/ObjcUML/Scripts/parse.js  

/bin/rm -rf /Users/MicroCai/Open Source/ProjectName/ObjcUML.zip



/Users/MicroCai/Open Source/ProjectName/ObjcUML/script.rb -s "ProjectName" -t /Users/MicroCai/Open Source/ProjectName/ObjcUML/origin.js

find: /Users/MicroCai/Library/Caches/appCode*/DerivedData: No such file or directory
There were 90 directories found
Last modifications were in
/Users/MicroCai/Library/Developer/Xcode/DerivedData/ProjectName-hhcqzwrcftibyegpxvjmxwbpiowr/Build/Intermediates/ProjectName.build/DebugTestEnv-iphonesimulator/ProjectName.build/Objects-normal/x86_64
directory at
2015-07-15 12:07:06 +0800
warning: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm: no name list
warning: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm: no name list
warning: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm: no name list

kimsungwhee pushed a commit that referenced this issue Jul 15, 2015
@kimsungwhee
Copy link
Owner

我推测你在运行该插件的时候,让xcode失去了焦点或者是你同时开启了几个xcode窗口。
以上的情况下runtime获取项目目录的时候会得到nil所以会崩溃。

Xcode崩溃的问题已经修复,请从新安装该插件再运行。
如果还有什么问题,请与我联系。
谢谢。

@CrazyZombies
Copy link
Author

终于成功了,感谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants