Archive is not success, due to error code -1, Alth

2019-09-05 18:01发布

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条回答
甜甜的少女心
2楼-- · 2019-09-05 18:12

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.

enter image description here

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

查看更多
登录 后发表回答