FirebaseExtended / cocos2dx-cpp-sample

Firebase Cocos2d-x samples
http://firebase.google.com/games
MIT License
53 stars 25 forks source link

Error to complie in IOS #9

Closed saulex closed 5 years ago

saulex commented 7 years ago

Hi, in android work perfect compiled and run, (release and debug), If compiled with Xcode and command line "cocos compile" I got the same error result: ld: warning: object file (/Users//Documents//cocos2dx-cpp-sample/sample_project/bin/debug/ios/libcocos2d iOS.a(ftlzw.ios8_i386.o)) was built for newer iOS version (7.0) than being linked (6.0) Undefined symbols for architecture i386: "_OBJCCLASS$_FIRTransactionResult", referenced from: objc-class-ref in firebase_database(database_reference_ios_3449459c15aef7e31c8afe79eaa7793d.o) "_OBJCCLASS$_FIRDatabase", referenced from: objc-class-ref in firebase_database(database_ios_a510d85c52f977653ce87c71622b82b9.o) "_OBJCCLASS$_FIRPhoneAuthProvider", referenced from: objc-class-ref in firebase_auth(credential_ios_8842bea456a3d08991633ce351da4833.o) "_OBJCCLASS$_FIRGoogleAuthProvider", referenced from: objc-class-ref in firebase_auth(credential_ios_8842bea456a3d08991633ce351da4833.o) "_OBJCCLASS$_FIRDatabaseReference", referenced from: objc-class-ref in firebase_database(database_reference_ios_3449459c15aef7e31c8afe79eaa7793d.o) "_OBJCCLASS$_FIRGitHubAuthProvider", referenced from: objc-class-ref in firebase_auth(credential_ios_8842bea456a3d08991633ce351da4833.o) "_OBJCCLASS$_FIREmailAuthProvider", referenced from: objc-class-ref in firebase_auth(credential_ios_8842bea456a3d08991633ce351da4833.o) "_OBJCCLASS$_FIRAuth", referenced from: objc-class-ref in firebase_auth(auth_ios_aeeb64b45d2cf07d8a483d9b8a93eadf.o) "_OBJCCLASS$_FIRTwitterAuthProvider", referenced from: objc-class-ref in firebase_auth(credential_ios_8842bea456a3d08991633ce351da4833.o) "_OBJCCLASS$_FIRPhoneAuthCredential", referenced from: objc-class-ref in firebase_auth(user_ios_8c8add148e36bde3d728607314e5511d.o) "_OBJCCLASS$_FIROAuthProvider", referenced from: objc-class-ref in firebase_auth(credential_ios_8842bea456a3d08991633ce351da4833.o) "_OBJCCLASS$_FIROptions", referenced from: objc-class-ref in firebase(app_ios_bf85e0fc73a1028793d185e5f1e44a98.o) "_OBJCCLASS$_FIRFacebookAuthProvider", referenced from: objc-class-ref in firebase_auth(credential_ios_8842bea456a3d08991633ce351da4833.o) "_OBJCCLASS$_FIRApp", referenced from: objc-class-ref in firebase(app_ios_bf85e0fc73a1028793d185e5f1e44a98.o) ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)

BUILD FAILED

The following build commands failed: Ld /Users//Documents//cocos2d-x-3.13.1/cocos2dxnew-cpp-sample/cocos2dx-cpp-sample/sample_project/bin/debug/ios/HelloCpp-mobile.app/HelloCpp-mobile normal i386 (1 failure) Build failed: Take a look at the output above for details.

I don't know I need to fixer.

Thank you.

Mac OSX Capitan v10.11.6 Xcode Version 8.2.1 (8C1002)

alexames commented 7 years ago

Can you explain in a little bit more detail the steps you took to build the project? You shouldn't need to run cocos compile when doing an iOS build. Did you follow the steps on this page? Make sure your Cocoapods are up to date too (pod update). Also make sure you're running the .xcworkspace file and not the .xcodeproj file, if you weren't already.

saulex commented 7 years ago

Sorry, I don't know IOS plataform, I install "pod" and all work perfect.