[ 
https://issues.apache.org/jira/browse/CB-12995?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16486632#comment-16486632
 ] 

erickyim commented on CB-12995:
-------------------------------

Maybe it's a cordova build issue. In file `platforms/ios/cordova/lib/build.js`, 
I comment out some args in 
`getXcodeBuildArgs` function, and `cordova build iOS --device` SUCCESS.  
!image-2018-05-23-10-56-46-716.png!!image-2018-05-23-10-56-46-716.png!

> 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: cordova-ios@4.3.0
>            Reporter: Johan
>            Priority: Major
>         Attachments: image-2018-05-23-10-56-46-716.png
>
>
> 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
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to