Shmoopi/iOS-System-Services

build failed on iOS9.2

Closed this issue · 5 comments

when I drag the file named System Services into my project instead of pod it,it build failed,it tells that UIInterfaceOrientation is not the expected type,and with many errors ,but the demo runs well, little confused.Can you tell me why? Maybe I should use the pod?

i have try it with pod,it works well ,why it couldn't use the source files?

Hi @CodingGou,

That's a great question! It appears that the demo project and Cocoa Pod implementation both have a pre-compiled header (.pch) file that includes a UIKit import. We've updated the project to include the UIKit imports into the necessary classes so that the .pch file is no longer necessary to include the class without using Cocoa Pods. Sorry for the confusion.

Thanks,
Shmoopi

Thank for you reply! it works well,but it still has litter flow ,the flow is
'system' is deprecated :first deprecated in iOS 8.0 - Use posix_spawn APIs instead.
If you can solve it !That's will be a very nice job!
sorry about that uploading the picture is failed

@CodingGou,

Not a problem. We've kept the 'system' call in the latest release but deprecated its usage. You will get a warning because of it, but it shouldn't cause any issues. We are planning on removing it at a later date.

Thanks,
Shmoopi