Johan created CB-12995:
--------------------------

             Summary: use_frameworks with cocoapod works in xCode but not from 
cli build
                 Key: CB-12995
                 URL: https://issues.apache.org/jira/browse/CB-12995
             Project: Apache Cordova
          Issue Type: Bug
          Components: cordova-cli
    Affects Versions: [email protected]
            Reporter: Johan


Hi

I am trying to use use a cocoapod (AFNetworking) in an ionic project.

I have setup the AFNetworking reference in config.xml and the Podfile is 
generated ok inside platforms/ios.

However in order for me to be able to import AFNetworking from swift I need to 
add the use_frameworks! directive to the Podfile. This I am doing in my build 
script so the podfile is update with this line before calling:
ionic cordova build ios

The podfile is correct and I can successfully build the whole project 
afterwards in xCode with no problems at all. I can import AFNetworking etc.

The issue is that ionic cordova build ios fails with error 65 and the output 
below and I am not able to understand why. The fact that I can open the 
workspace in xcode and do the build indicates that it is not broken but 
something is missing when running from the cli. If I remove the use_framwork! 
and the pod, then the command line build works as well.

** BUILD FAILED **


        The following build commands failed:
        ProcessProductPackaging ""
        
/Users/yc00025/Library/Developer/Xcode/DerivedData/bdd-app-dcjeitzfhkidnpftbkzrpdourgyy/Build/Intermediates/Pods.build/Debug-iphonesimulator/AFNetworking.build/AFNetworking.framework.xcent
        (1 failure)
        Error: Error code 65 for command: xcodebuild with args:
        
-xcconfig,/Users/yc00025/projects/bdd-app/platforms/ios/cordova/build-debug.xcconfig,-workspace,bdd-app.xcworkspace,-scheme,bdd-app,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS
        Simulator,name=iPhone
        
5s,build,CONFIGURATION_BUILD_DIR=/Users/yc00025/projects/bdd-app/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/yc00025/projects/bdd-app/platforms/ios/build/sharedpch



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to