Mike Hatfield created CMIS-831:
----------------------------------

             Summary: MacOS target incompatibility issues
                 Key: CMIS-831
                 URL: https://issues.apache.org/jira/browse/CMIS-831
             Project: Chemistry
          Issue Type: Bug
          Components: objectivecmis
    Affects Versions: ObjectiveCMIS 0.4
         Environment: OS X 10.9.4
            Reporter: Mike Hatfield
            Priority: Critical


There are some incompatibilities when trying to use the current version of 
ObjectiveCMIS against MacOS targets. Specifically:

- UIKit imports. These are likely as a result of boilerplate class templates, 
are not required for the iOS target and cause compilation errors on non-iOS 
targets. They can safely be removed.

- A workaround implemented in r1496374 in CMISHttpUploadRequest that causes 
(nearly) all upload requests to fail on MacOS targets. The following code:
{code}
       case NSStreamEventOpenCompleted:{
            if (self.base64InputStream.streamStatus != NSStreamStatusOpen) {
                [self.base64InputStream open]; // this seems to work around the 
'Stream ... is sending an event before being opened' Apple bug
            }
{code}
needs further investigation/testing. It may be that it needs wrapping in a 
platform-specific preprocessor directive so that it only targets the iOS 
platform, but as-is causes a 95% failure rate of uploads on MacOS.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to