Ypimagepicker: Command CompileSwiftSources failed with a nonzero exit code

Created on 2 Oct 2018  ·  7Comments  ·  Source: Yummypets/YPImagePicker

Describe the bug
When I compile the example project with Xcode 10, I get this error.

Most helpful comment

This is a known issue documented in Swift 4.2 Release Notes for Xcode 10

Compilation might fail without displaying the errors responsible for the failure. For example, you might see the message “Command CompileSwiftSources failed with a nonzero exit code” without an accompanying failure reason. (43033749)
Workaround: Disable batch mode by adding a user-defined build setting named SWIFT_ENABLE_BATCH_MODE and set it to NO.

screen shot 2018-10-07 at 9 16 08 am

Once you have added the build setting, the real problem will be revealed, PryntTrimmerView.h is missing.
screen shot 2018-10-05 at 4 49 21 pm

To fix it, run carthage update, clean the build folder and then rebuild the example project.

All 7 comments

This is a known issue documented in Swift 4.2 Release Notes for Xcode 10

Compilation might fail without displaying the errors responsible for the failure. For example, you might see the message “Command CompileSwiftSources failed with a nonzero exit code” without an accompanying failure reason. (43033749)
Workaround: Disable batch mode by adding a user-defined build setting named SWIFT_ENABLE_BATCH_MODE and set it to NO.

screen shot 2018-10-07 at 9 16 08 am

Once you have added the build setting, the real problem will be revealed, PryntTrimmerView.h is missing.
screen shot 2018-10-05 at 4 49 21 pm

To fix it, run carthage update, clean the build folder and then rebuild the example project.

Umbrella header 'PrynTrimmerView.h' not found. after carthage update.
How to fix?

thanks ! solved my problem

Yup, fixed it for me, now I can see the actual compilation error.
THANKS!

In my case I connect an actual iphone not simulator and run the app once on it, It solved the problem. But connect iphone firstly, then choose it from the menu of simulator, then press run button.
The problem will solve too.

it does not work for me. Xcode12 bate3

it does not work for me. Xcode12 bate3

And XCode 12.2

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Sieniek picture Sieniek  ·  5Comments

jonnyarc picture jonnyarc  ·  3Comments

nickeyzzz picture nickeyzzz  ·  6Comments

StackHelp picture StackHelp  ·  4Comments

roarapps picture roarapps  ·  4Comments