cancel
Showing results for 
Search instead for 
Did you mean: 

Error when building apps with SAP SDK Assistant for IOS

former_member753381
Discoverer
0 Kudos

I try to build a App with the SAP SDK Assistant for IOS accounting to the Tutorial:

https://developers.sap.com/tutorials/fiori-ios-scpms-starter-mission-02.html

from the Step where I have to add code (Variable Platform / Products) I get a Error Message saying not in Scope.

I continued with the tutorial and have now several Scope Errors and some ESPM Error (please find Screenshot attached).

I restarted Xcode, emptied the Derived Data and rebuilt the App. Also I tried to Implement the framework manually (different Errors & and not sure if I did it correct) and also initialized a pod (also not sure if I did it correct).

Any Idea what could be the Problem ?

thanks & kind regards

Jonas

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member753381
Discoverer
0 Kudos

bildschirmfoto-2021-07-14-um-092840.pngDear Mr. Eidinger,

thank you so much for the reply! Your answer was very helpful and most of the issues are gone now.

Still there is one Issue "No such module 'ESPMContainerFmwk'" in ESPMContainerOffline.

I looked in the folder but there is the file. Also installed the Podfile and deleted the derived data.

Any Idea here ?

Kind regards

Jonas

MarcoEidinger
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi, some changes to the generated app structure were introduced with version 6.0 of SAP BTP SDK for iOS Assistant. As the Assistant is able to generate an app extension for widgets there is a need to share code between targets. Therefore the Assistant generates a shared framework as well as for each destination (set of proxy classes) a framework gets created.

For the tutorial using the destination "com.sap.edm.sampleservice.v2" this means that proxy classes of Enterprise Sales and Procurement Model are located in generated framework named "ESPMContainerFmwk".

The generated ODataController is located in generated framework named "SharedFmwk".

Hence you need the following import statements

import ESPMContainerFmwk
import SharedFmwk

I will ask the tutorial owner to reflect those changes in the code snippets.

Cheers,

Marco