Correct settings for use with XCode 7 - lots of warnings about libplugin_OneSignal.a

I’ve updated to XCode 7 and Enterprise build 2015.2730 (Corona OneSignal SDK v1.10.7).  My app builds and appears to run but there are a a large number of warnings now.

Are there other settings that I need to change with the switch to XCode 7 or is there another update forthcoming?

Below is a partial list of the warnings:

while processing /Applications/CoronaEnterprise/Corona/ios/lib/libplugin_OneSignal.a(GameThrive.o):

warning: /var/folders/m3/4mw975vs0rx91dcstvctvn7r0000gn/C/org.llvm.clang.Kasten/ModuleCache/1SLLWSI212EE4/Foundation-A3SOD99KJ0S9.pcm: No such file or directory

while processing /Applications/CoronaEnterprise/Corona/ios/lib/libplugin_OneSignal.a(GameThrive.o):

warning: /var/folders/m3/4mw975vs0rx91dcstvctvn7r0000gn/C/org.llvm.clang.Kasten/ModuleCache/1SLLWSI212EE4/Foundation-A3SOD99KJ0S9.pcm: No object file for requested architecture

while processing /Applications/CoronaEnterprise/Corona/ios/lib/libplugin_OneSignal.a(GameThrive.o):

warning: /var/folders/m3/4mw975vs0rx91dcstvctvn7r0000gn/C/org.llvm.clang.Kasten/ModuleCache/1SLLWSI212EE4/ObjectiveC-2CD0WTQVXITO7.pcm: No such file or directory

while processing /Applications/CoronaEnterprise/Corona/ios/lib/libplugin_OneSignal.a(GameThrive.o):

warning: /var/folders/m3/4mw975vs0rx91dcstvctvn7r0000gn/C/org.llvm.clang.Kasten/ModuleCache/1SLLWSI212EE4/ObjectiveC-2CD0WTQVXITO7.pcm: No object file for requested architecture

while processing /Applications/CoronaEnterprise/Corona/ios/lib/libplugin_OneSignal.a(GameThrive.o):

warning: Could not resolve external type c:objc(cs)NSString

while processing /Applications/CoronaEnterprise/Corona/ios/lib/libplugin_OneSignal.a(GameThrive.o):

warning: Could not resolve external type c:objc(cs)NSObject

while processing /Applications/CoronaEnterprise/Corona/ios/lib/libplugin_OneSignal.a(GameThrive.o):

warning: Could not resolve external type c:objc(cs)NSDictionary

while processing /Applications/CoronaEnterprise/Corona/ios/lib/libplugin_OneSignal.a(GameThrive.o):

warning: Could not resolve external type c:objc(cs)NSArray

while processing /Applications/CoronaEnterprise/Corona/ios/lib/libplugin_OneSignal.a(GameThrive.o):

warning: Could not resolve external type c:objc(cs)NSNumber

It seems others are seeing new build warnings with Xcode 7 as well even with other frameworks. Can you see if the following helps remove them as well for you.

https://forums.developer.apple.com/thread/17921

Thanks.

Well, I tried all of the various solutions mentioned, specifically these settings for my project:

Precompile Prefix (GCC_PRECOMPILE_PREFIX_HEADER) = NO

Debug Information Format (DEBUG_INFORMATION_FORMAT) = DWARF with dSYM

Enabled Modules (C and Objective-C) (CLANG_ENABLE_MODULES) = NO

However I still get warnings with those settings.

I can get the warnings to go away by changing

Debug Information Format (DEBUG_INFORMATION_FORMAT) = DWARF   (from DWARF with dSYM)

However, that change breaks Crashlytics.

Are you building your library with XCode 6 or 7? I’m wondering if there’s some compatibility issues there.

OneSignal SDK v1.10.7 was build with Xcode 7.0.1. We highly recommend building with this version of Xcode (or newer 7.0.x version when it releases) when using Corona Enterprise build 2720+.

With the Corona Simulator it is require to use Xcode 7.x when using Corna Build 2720+. If Xcode 6.x is used this does not work as  either Xcode or Corona ends up importing OneSignal twice which create duplicate errors.

Corona builds 2719 and older are on OneSignal SDK v1.10.2 and Xcode 6.x should be used.

Thanks.

Ok – thanks.  I’m using 7.01 and 2015.2730.  I’ll try a new simple project to see if the issue persists.

So – I finally got back to using a brand new project (The App template from the Enterprise download) from 2015.2733

I made the 3 changes as specified in https://forums.developer.apple.com/thread/17921

I verified that this plain project builds and runs without any issues.

I added libnotification.a and libplugin_OneSignal.a to the project and rebuilt.  I now get lots of warnings. 

I took out libplugin_OneSignal.a and instead added libfacebook.a and libads-vungle.a  to see if other plugins had similar issue.  There were no issues.

Is there anything else I can try to help track down this problem?

I just released a new build to Corona to fix these Xcode 7 warnings. If you would like to start using it right away you can download it below:

https://www.dropbox.com/s/r4f9bnemna5bwte/OneSignal1.10.8-Corona.rar?dl=0

Thanks.

Thanks for the update.  No more warnings for me.

It seems others are seeing new build warnings with Xcode 7 as well even with other frameworks. Can you see if the following helps remove them as well for you.

https://forums.developer.apple.com/thread/17921

Thanks.

Well, I tried all of the various solutions mentioned, specifically these settings for my project:

Precompile Prefix (GCC_PRECOMPILE_PREFIX_HEADER) = NO

Debug Information Format (DEBUG_INFORMATION_FORMAT) = DWARF with dSYM

Enabled Modules (C and Objective-C) (CLANG_ENABLE_MODULES) = NO

However I still get warnings with those settings.

I can get the warnings to go away by changing

Debug Information Format (DEBUG_INFORMATION_FORMAT) = DWARF   (from DWARF with dSYM)

However, that change breaks Crashlytics.

Are you building your library with XCode 6 or 7? I’m wondering if there’s some compatibility issues there.

OneSignal SDK v1.10.7 was build with Xcode 7.0.1. We highly recommend building with this version of Xcode (or newer 7.0.x version when it releases) when using Corona Enterprise build 2720+.

With the Corona Simulator it is require to use Xcode 7.x when using Corna Build 2720+. If Xcode 6.x is used this does not work as  either Xcode or Corona ends up importing OneSignal twice which create duplicate errors.

Corona builds 2719 and older are on OneSignal SDK v1.10.2 and Xcode 6.x should be used.

Thanks.

Ok – thanks.  I’m using 7.01 and 2015.2730.  I’ll try a new simple project to see if the issue persists.

So – I finally got back to using a brand new project (The App template from the Enterprise download) from 2015.2733

I made the 3 changes as specified in https://forums.developer.apple.com/thread/17921

I verified that this plain project builds and runs without any issues.

I added libnotification.a and libplugin_OneSignal.a to the project and rebuilt.  I now get lots of warnings. 

I took out libplugin_OneSignal.a and instead added libfacebook.a and libads-vungle.a  to see if other plugins had similar issue.  There were no issues.

Is there anything else I can try to help track down this problem?

I just released a new build to Corona to fix these Xcode 7 warnings. If you would like to start using it right away you can download it below:

https://www.dropbox.com/s/r4f9bnemna5bwte/OneSignal1.10.8-Corona.rar?dl=0

Thanks.

Thanks for the update.  No more warnings for me.