Archive is not success, due to error code -1, Although I can do build and install in my devices with developement profile

僤鯓⒐⒋嵵緔 提交于 2020-01-06 21:09:37

问题


My Application is coded with swift 3 And core-data as offline information storage.

I'm not able to archive my application due to long list or error like

<unknown>:0: error: no such file or directory: '/Users/Ashwin/Library/Developer
/Xcode/DerivedData/BeerScout-eweygxkfdhbkbkalbiyywrsuievg/Build
/Intermediates/ArchiveIntermediates/BeerScout/IntermediateBuildFilesPath
/BeerScout.build/Release-iphoneos/BeerScout.build/DerivedSources
/CoreDataGenerated/BeerScout/Beer+CoreDataClass.swift'
...
And at last 
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1

I have checked for

#1 Code optimizations
#2 Clean project and derived data
#3 Also checked for code-gen for core data files.
#4 Revoke and recreate new certificates
#5 Cleaning system junks and re-started several times

None of above is resolving my issue. Please suggest me what I have visited almost all related links over stack. And googled for same.

Thank you


回答1:


I had the same issue, I had gone with the above link

Xcode 6.0.1 Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1

And

https://forums.developer.apple.com/message/194256#194313

With manual/none code generation, I got lots of error. Then I add core data and its properties file for all my entity from Menu bar's editor option(by selecting all entities) so it creates all needful swift class at once.

This supposes to be work as per apple's forum link.



来源:https://stackoverflow.com/questions/42336935/archive-is-not-success-due-to-error-code-1-although-i-can-do-build-and-instal

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!