[SOLVED] Many failures, compiling for iPhone

Previous topic - Next topic

msx

I have created a small code for iphone (just show text) and xcode shows too many errors. Copy here if anyone can help me.

Is there a more complete manual than the existing readme.txt in the xcode folder?

VMWare with MacOS Sierra and XCode 8.1.

Code (glbasic) Select

Showing Recent Issues
Check dependencies

warning: no rule to process file '/Users/rom/Desktop/XCode/Code/glblicence.inc' of type sourcecode.pascal for architecture armv7
warning: no rule to process file '/Users/rom/Desktop/XCode/Code/glblicence.inc' of type sourcecode.pascal for architecture arm64

CompileC /Users/rom/Library/Developer/Xcode/DerivedData/iphone-dnrupnqxsoqqgfbviospigknvgqu/Build/Intermediates/iphone.build/Debug-iphoneos/GLB_PRODUCT_NAME.build/Objects-normal/armv7/gpc_temp6.o /Users/rom/Desktop/XCode/Code/gpc_temp6.cpp normal armv7 c++ com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/rom/Desktop/XCode/Project
    export LANG=en_US.US-ASCII
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -arch armv7 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu++11 -gmodules -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Wunreachable-code -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.1.sdk -fstrict-aliasing -Wno-deprecated-declarations -Winvalid-offsetof -miphoneos-version-min=8.0 -g -fvisibility-inlines-hidden -Wno-sign-conversion -Winfinite-recursion -Wmove -iquote /Users/rom/Library/Developer/Xcode/DerivedData/iphone-dnrupnqxsoqqgfbviospigknvgqu/Build/Intermediates/iphone.build/Debug-iphoneos/GLB_PRODUCT_NAME.build/test-generated-files.hmap -I/Users/rom/Library/Developer/Xcode/DerivedData/iphone-dnrupnqxsoqqgfbviospigknvgqu/Build/Intermediates/iphone.build/Debug-iphoneos/GLB_PRODUCT_NAME.build/test-own-target-headers.hmap -I/Users/rom/Library/Developer/Xcode/DerivedData/iphone-dnrupnqxsoqqgfbviospigknvgqu/Build/Intermediates/iphone.build/Debug-iphoneos/GLB_PRODUCT_NAME.build/test-all-target-headers.hmap -iquote /Users/rom/Library/Developer/Xcode/DerivedData/iphone-dnrupnqxsoqqgfbviospigknvgqu/Build/Intermediates/iphone.build/Debug-iphoneos/GLB_PRODUCT_NAME.build/test-project-headers.hmap -I/Users/rom/Library/Developer/Xcode/DerivedData/iphone-dnrupnqxsoqqgfbviospigknvgqu/Build/Products/Debug-iphoneos/include -I/Users/rom/Library/Developer/Xcode/DerivedData/iphone-dnrupnqxsoqqgfbviospigknvgqu/Build/Intermediates/iphone.build/Debug-iphoneos/GLB_PRODUCT_NAME.build/DerivedSources/armv7 -I/Users/rom/Library/Developer/Xcode/DerivedData/iphone-dnrupnqxsoqqgfbviospigknvgqu/Build/Intermediates/iphone.build/Debug-iphoneos/GLB_PRODUCT_NAME.build/DerivedSources -F/Users/rom/Library/Developer/Xcode/DerivedData/iphone-dnrupnqxsoqqgfbviospigknvgqu/Build/Products/Debug-iphoneos -DTARGET_OS_IPHONE -include /Users/rom/Library/Developer/Xcode/DerivedData/iphone-dnrupnqxsoqqgfbviospigknvgqu/Build/Intermediates/PrecompiledHeaders/iOS_Prefix-erdnvqisxnnrpvgqqgaegphzhavc/iOS_Prefix.pch -MMD -MT dependencies -MF /Users/rom/Library/Developer/Xcode/DerivedData/iphone-dnrupnqxsoqqgfbviospigknvgqu/Build/Intermediates/iphone.build/Debug-iphoneos/GLB_PRODUCT_NAME.build/Objects-normal/armv7/gpc_temp6.d --serialize-diagnostics /Users/rom/Library/Developer/Xcode/DerivedData/iphone-dnrupnqxsoqqgfbviospigknvgqu/Build/Intermediates/iphone.build/Debug-iphoneos/GLB_PRODUCT_NAME.build/Objects-normal/armv7/gpc_temp6.dia -c /Users/rom/Desktop/XCode/Code/gpc_temp6.cpp -o /Users/rom/Library/Developer/Xcode/DerivedData/iphone-dnrupnqxsoqqgfbviospigknvgqu/Build/Intermediates/iphone.build/Debug-iphoneos/GLB_PRODUCT_NAME.build/Objects-normal/armv7/gpc_temp6.o

/Users/rom/Desktop/XCode/Code/gpc_temp6.cpp:79:3: error: unknown type name '__VAR_CONTAINER'
  __VAR_CONTAINER __FKT;
  ^
/Users/rom/Desktop/XCode/Code/gpc_temp6.cpp:80:10: error: unexpected type name 'DGInt': expected expression
ARGS_VAR(DGInt&, lat);
         ^
/Users/rom/Desktop/XCode/Code/gpc_temp6.cpp:80:16: error: expected expression
ARGS_VAR(DGInt&, lat);
               ^
/Users/rom/Desktop/XCode/Code/gpc_temp6.cpp:81:10: error: unexpected type name 'DGInt': expected expression
ARGS_VAR(DGInt&, lon);
         ^
/Users/rom/Desktop/XCode/Code/gpc_temp6.cpp:81:16: error: expected expression
ARGS_VAR(DGInt&, lon);
               ^
/Users/rom/Desktop/XCode/Code/gpc_temp6.cpp:82:10: error: unexpected type name 'DGInt': expected expression
ARGS_VAR(DGInt&, alt);
         ^
/Users/rom/Desktop/XCode/Code/gpc_temp6.cpp:82:16: error: expected expression
ARGS_VAR(DGInt&, alt);
               ^
/Users/rom/Desktop/XCode/Code/gpc_temp6.cpp:83:10: error: unexpected type name 'DGInt': expected expression
ARGS_VAR(DGInt&, spd);
         ^
/Users/rom/Desktop/XCode/Code/gpc_temp6.cpp:83:16: error: expected expression
ARGS_VAR(DGInt&, spd);
               ^
/Users/rom/Desktop/XCode/Code/gpc_temp6.cpp:84:10: error: unexpected type name 'DGInt': expected expression
ARGS_VAR(DGInt&, head);
         ^
/Users/rom/Desktop/XCode/Code/gpc_temp6.cpp:84:16: error: expected expression
ARGS_VAR(DGInt&, head);
               ^
/Users/rom/Desktop/XCode/Code/gpc_temp6.cpp:179:3: error: unknown type name '__VAR_CONTAINER'
  __VAR_CONTAINER __FKT;
  ^
/Users/rom/Desktop/XCode/Code/gpc_temp6.cpp:223:3: error: unknown type name '__VAR_CONTAINER'
  __VAR_CONTAINER __FKT;
  ^
/Users/rom/Desktop/XCode/Code/gpc_temp6.cpp:266:3: error: unknown type name '__VAR_CONTAINER'
  __VAR_CONTAINER __FKT;
  ^
/Users/rom/Desktop/XCode/Code/gpc_temp6.cpp:267:10: error: unexpected type name 'DGInt': expected expression
ARGS_VAR(DGInt&, lat);
         ^
/Users/rom/Desktop/XCode/Code/gpc_temp6.cpp:267:16: error: expected expression
ARGS_VAR(DGInt&, lat);
               ^
/Users/rom/Desktop/XCode/Code/gpc_temp6.cpp:268:10: error: unexpected type name 'DGInt': expected expression
ARGS_VAR(DGInt&, lon);
         ^
/Users/rom/Desktop/XCode/Code/gpc_temp6.cpp:268:16: error: expected expression
ARGS_VAR(DGInt&, lon);
               ^
/Users/rom/Desktop/XCode/Code/gpc_temp6.cpp:269:10: error: unexpected type name 'DGInt': expected expression
ARGS_VAR(DGInt&, alt);
         ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.


Alex_R

I think the problem is in your gpc_temp6.cpp (inside code folder) You have to delete this file and perhaps others (_temp*.cpp)that you don't need and they are not code from your app.

msx

Hi Alex, I have tried what you indicate but it does not fix.

I am following the readme.txt of the XCode folder:

QuoteSetup for xCode:
================
Put your project files here, as if it was the .app directory before testing in XCode.
I strongly suggest putting all files in the "Media" directory, and then
LOADPSRITE "Media/..." in your program.
The XCode project will use the Media directory then.



Setup and Compile to xCode 6 and iOS8:
======================================

1. First at all you need to create your Developer cerficates:

   http://mobiforge.com/design-development/deploying-iphone-apps-real-devices
   
2. You need to create Provisioning Profile for each app in the iOS dev center.

Edits required In iPhone xCode Project (tvOS have own xCode Project):
=====================================================================

1. Open iphone xCode Project.

2. The left tree, click on iPhone-info.plist

- click on URL Types / URL idenfilier. This line should been your product url name.
 
  Example:
   Im have the game "com.spacefractal.spotrace registred on my Apple Dev Center.
   
  Then its should been:
    "Bundle identifier" = com.spacefractal.$(PRODUCT_NAME:rfc1034identifier)
   
- Change "Bundle Name" to something you want to show on the screen. For spotrace,
   this could been Spot Race.
   
2.  Click on iPhone target on the left panel (the first line in the tree), and then on the General tbal.

    - Check out the version and the build number. The version number should been the same, you have set in the iTunes Connect.
   - Use either Landscape Left/Landscape Right, or Portrait in both ways.
     Currectly glbasic does not auto rotate from landscape to portrait currectly.
   
3.  Click on "Build Settings" and checkout "Valid Architectures".

    - This entry must been "armv7" and "arm64". Both cpu is required today from iOS8.
   - You also need to do Code Signing, include Provisioning Profiles correctly. This is the most annoying part!!!!!!
   
4. You now need to add the Code files generated from glbasic. This require a few steps:

    - Open distribute\iPhone\XCode\PROGRAM\PROGRAM.xcodeproj
    - Add CPP/H Files to your project, which exists in the PROGRAM\code folder
   
5.   Where is my icons?   

    - You should replace all icons by your self in Images.xcassets/AppIcon.appiconset. Glbasic do create those for you, but not a good quality.
    - The icons with frames glbasic create in the "root" folders is NOT used at all. They are now wrong. Just left them as they are or delete them.
   
6.  for TVos, you are required to using KeyStore iCloud support. This is not required on iPhone target.
    Just enable iCloud and tick out "Key-value storage" under "Services". iCloud also might been enabled by default.
   If you have trouble with that and compile with it, just disable it
   (and then eventuelly enable it again to create the required plist file).
   
PLEASE NOTE:

For xCode 7.0, iOS 5.x is no longer supported. the Glbasic libs is compiled with 6.0 as minimum.

But too many failures happen.

spacefractal

I'm might need to update it. It's does look like you need to rename a entry in a file. I'm will point up when home and possible. It's some time ago I'm did that.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

spacefractal

Its also look like im need to catchout to recompile my project with xcode 8.1, which can been the one of last version for now, until im have purchased a new Mac (my Mac can no longer updated and is now stuck on El Caption, its a early 2009 Mini Mac model). The lastest project was with xcode 6.1 im did, so some time ago. Im head there was no issues with xcode 7.x throught. But im will in this month take a look on the iOS to update to reflect the changes to the xcode 8.1 and eventuelly update the readme file.

Also the iOS project is still on glBasic 12 (which im update it to use glBasic 14 of course).

But what you can do is:
- First at all, if you use different projects, then make sure you also delete the temp folder before you compile.
- You need to open settings.ini as well and insert your TeamID and AppID in that file.
- Upload the gpc_temp6.cpp? Its look like the issues is all the same.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

msx

I'll keep you informed. Thank you.


Enviado desde mi iPhone utilizando Tapatalk

spacefractal

#6
Look like im still missing some glbasic source code, before im can update it to use xcode 8.1. Gernot can you send me the full source code to my email again? Im get a lots of error in glb-full with the ip-v6 changes with some member names not exists in the class NETadress. Rest seen to go fine.

Please note, when im have done the update (which might take some time, because im till missing some source code diff), then iOS8 would been required to been minimum. That means im will remote all those iOS6 rotation workaraound, which is no longer required.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

msx

Then, can I do something or just wait?

spacefractal

im cant test anything before im got the full source code again so the net ip6 thing can been updated (yes its that long time ago, so its time to do that again). Please note, im cannt property support issues, that is with vmware. Im using a real mac (which is quite very old). Im would also update the jpg issue as well for iOS as well (that security issue that was with Android, which can been same for iOS).
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

spacefractal

so nothing im really can do, and im have wrote to Gernot, so im can get the changed lines in the NETadress class. Im thinks its all missing to get it working again.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

msx

Let's hope Gernot answers you soon.

spacefractal

im got the files. but tired today and no time tomorrow, so this might take somewhere a week me thinks. Then im hopefully can port it succusful to iOS10 (and Apple TV). Im do might remove iOS6 orintation stuff as well, since its seen no longer required, since iOS8 is required now to submit (im havent checked about legancy apps, but Apple are begin to remove apps that no longer works on newer iOS).
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

msx


spacefractal

im got the missing files. So today im got the library compiled, but im have still not tested it on a device yet (which might been good or fail). But im do thinks its might take about a week before im will release it (property on Black Friday). On that date im also relaese the few things im did for Android.

Today im also doing some stuff for a Greedy Mouse DLC for Steam (which release later this week).
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

msx

Can I help you doing tests?


Enviado desde mi iPhone utilizando Tapatalk