Hi. We noticed quite a strange behavior in SPM where it does not warn about missing return statements in Objective-C. Is this behavior expected?
- Create an Xcode project in Objective-C
- Create an SPM package in Objective-C
- Add a method in the SPM package that returns a BOOL
- Leave the body of the method empty (no return statement)
- Import the package in the project and invoke the method in the project
Expected: Build fails due missing return statement
Observed: Build succeeds and every time the method is run, it returns random values
Feedback: FB11558487
Is there a way to tell SPM to inherit build/compile flags from the Xcode project? When I try to do the same on the Xcode project side, I get the expected behavior. Build fails and I must fix the issue before proceeding. But not in case with SPM.