Hi all,
I’m starting to build my APP on iOS platform by Enterprise but there is poor document to guide.
I need some help to build my project successfully.
My situation:
-
A lua project which could be build successfully on Corona Pro version;
-
Plugins need to be integrated: flurry, Facebook, notification.
I’ve had the *.a from Enterprise daily buildings. And I noticed there is a bundle file in Facebook resources directory.
- I’m using xCode 6.1.1
I want to know:
[OK, now I know them all.]
- Where I should put these *.a static library?
[In the build phase page or build setting, add the *.a file and *.framework file in the link section]
- Where I should put the Facebook bundle file?
[In the build phase page, there is a bundle file section, click ‘+’ to add the 3rd party bundle file ]
- What should I config in the iOS project setting?
[see below.]
- How should I use the ‘metadata.lua’ in each plugin?
[seems no use in iOS build.]
- Is build.setting used in iOS building phase, as I know build android version in Enterprise do not need this file.
[Yes, iOS would use the file and in build phase this file would be converted into xx.plist]
- There is “build.sh” in project ios directory, should use this script to build APP or use xCode build tools?
[never mind, just leave it there.]
========KEY TO BUILD SUCCESSFULLY. Please do below setting==========
In the Deployment Info section below, go through and edit the options such as Deployment Target, Devices, Device Orientation, etc.
Next, scroll down to the Linked Frameworks and Libraries and, at the bottom, click on the +button. Locate AVFoundation.framework, select it, and click Add.
Now, in the uppermost bar of the middle pane, click on the Build Settings tab and scroll down to Linking. For Other Linker Flags, enter -all_load -ObjC -lobjc -lsqlite3.
Scroll down to the Apple LLVM 5.1 – Language – C++ block. In this section, change the entry for C++ Standard Library to libstdc++ (GNU C++ standard library).