Skip to Content
0

SAP Cloud Platform SDK for iOS Assistance crashes while generating a project

Apr 06, 2017 at 08:40 PM

126

avatar image

Hi all,

I've been trying the new SDK on my machine now. I managed to download the version for 8.3 from the SAP Store and got the sample app generated and running in Xcode and the simulator.

Since then I tried to do the following: create a new app in mobile services pointing to ES4 and get an Xcode project generated on top of this with the Assistant. However every time I try this the Assistant would crash while generating the project. Looking into the folder I can see files and can open the Xcode project. This however shows 18 Swift Compiler Errors.

Any idea on what I might be doing wrong?

As an additional question: looking into the About section I see that I have version 1.1.002 installed. Is there any way on getting notified when a newer version becomes available or finding out what version is currently available?

Thanks,

Alex

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

David Egresits
Apr 07, 2017 at 03:28 PM
0

Hi Alexander,

Could you please send us the logs from the Console application?
Please use the following filter term in the Console application's search field: "process:assistant message:message".

Thanks,

David

Share
10 |10000 characters needed characters left characters exceeded
Alexander Sperling Apr 07, 2017 at 03:43 PM
0

Hi David,

I was not sure whether there is any mailbox for this. I tried uploading here as plain text, however upload was denied telling me that the file format is not supported. Any suggestion?

Thanks,
Alex

Share
10 |10000 characters needed characters left characters exceeded
David Egresits
Apr 10, 2017 at 06:41 AM
0

Hi Alex,

Please try to upload it as a zip.

Thanks,

David

Show 2 Share
10 |10000 characters needed characters left characters exceeded

Hi David,

ZIP is not allowed either. Please find below the 5 messages from Console:

default	17:33:07.367175 +0200	SAP Cloud Platform SDK for iOS Assistant	Message "Project generation started" (File: ComplexProjectGenerator.swift, Function: generateProject, Line: 78)


default	17:33:08.192778 +0200	SAP Cloud Platform SDK for iOS Assistant	Message "Modifying xcode: #
# Ruby script for framework management
#


require 'xcodeproj'


project = Xcodeproj::Project.open("/Users/alex/ECB mobile/SAPcp iOS SDK/SAPDemo" + "/" + "SAPDemo" + ".xcodeproj");


# Add the file to the main target
main_target = project.targets.first




# Array for libs with path
lib_path = ["SAPCommon.framework","SAPFoundation.framework","SAPOData.framework","SAPOfflineOData.framework","SAPFiori.framework"];


# Getting buildphase
framework_buildphase = project.objects.select{|x| x.class == Xcodeproj::Project::Object::PBXFrameworksBuildPhase}[0];
for libRef in project.root_object.main_group["Frameworks"].files do
    if !(lib_path.include? libRef.path)
        # Removing elements which are not necessary
        framework_buildphase.remove_file_reference(libRef)
        libRef.remove_from_project()
    end
end


project.save();
" (File: FrameworkManager.swift, Function: addFrameworks(), Line: 44)




default	17:33:08.194151 +0200	SAP Cloud Platform SDK for iOS Assistant	Message "Process to execute. At path: /usr/bin/env; Args: ["GEM_HOME=/Applications/SAP Cloud Platform SDK for iOS Assistant.app/Contents/Frameworks/Generator.framework/Resources/gem_home", "/System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby", "-e", "#\n# Ruby script for framework management\n#\n\nrequire \'xcodeproj\'\n\nproject = Xcodeproj::Project.open(\"/Users/alex/ECB mobile/SAPcp iOS SDK/SAPDemo\" + \"/\" + \"SAPDemo\" + \".xcodeproj\");\n\n# Add the file to the main target\nmain_target = project.targets.first\n\n\n# Array for libs with path\nlib_path = [\"SAPCommon.framework\",\"SAPFoundation.framework\",\"SAPOData.framework\",\"SAPOfflineOData.framework\",\"SAPFiori.framework\"];\n\n# Getting buildphase\nframework_buildphase = project.objects.select{|x| x.class == Xcodeproj::Project::Object::PBXFrameworksBuildPhase}[0];\nfor libRef in project.root_object.main_group[\"Frameworks\"].files do\n    if !(lib_path.include? libRef.path)\n        # Removing elements which are not <…>


default	17:33:08.574574 +0200	SAP Cloud Platform SDK for iOS Assistant	Message "XCode proj file:///Applications/SAP%20Cloud%20Platform%20SDK%20for%20iOS%20Assistant.app/Contents/Frameworks/Generator.framework/Resources/FrameworkManager.rb modification output: " (File: FrameworkManager.swift, Function: addFrameworks(), Line: 46)




default	17:33:10.115294 +0200	SAP Cloud Platform SDK for iOS Assistant	Message "Generating intermadiate proxy classes for connection: com.sap.tutorial.demoapp" (File: ProxyClassGenerator.swift, Function: generateProxyClasses(for:_:), Line: 143)



Thanks,
Alex

0

Hi Alex,

Can you please send us the metadata you are using? Probably something went wrong while parsing it.

And for one of your original questions: Unfortunately, there is no such option, which notifies you about newer versions.

Best regards,

David

0